
Ion GaztaƱaga skrev:
Thorsten Ottosen wrote:
vicente.botet skrev:
The address of the virtual table depends on the process, so can not be shared. As consequence we can not have virtual function on objects stored on shared memory.
Thanks. This pretty much makes it irrelevant for me to support shared memory then.
best regards
-Thorsten
Thanks Vicente. For more limitations, see:
Thanks. Does that mean I can't even use function pointers in shared memory? That is, I can't even create my own manual vtable scheme: class Base : boost::interprocess::base_class< Base* (), std::string (), void (const std::string&) > { Base* clone() const; std::string name() const; void setName( const std::string& ); }; ? Can I use boost::function in shared memory? -Thorsten