something regarding address spaces


A pointer to a virtual member can therefore safely be passed
between different address spaces as long as the same object layout is used in both. Like pointers to
ordinary functions, pointers to nonvirtual
member functions cannot be exchanged between address
spaces.

This is a text from a book on C++ . What does this address space here mean? is it different scopes we are talking about ? or something else ?
also how is it different for virtual fn and ordinary fns/non virtual fns ?
A pointer to virtual member is not resolved until runtime.
A pointer to non virtual member is decided at compile time.

The address formulated by the compiler at compile time is determined by the address space
for which the compiling is being done.

therefore when the address of the virtual function is calculated at runtime it will be based on the addressing system being used.

I pretty certain that is what they are on about.
Topic archived. No new replies allowed.