Boost logo

Boost :

Subject: Re: [boost] [interprocess] preparing containers
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-12-04 05:11:36


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:
>
> http://tinyurl.com/6qxbws

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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk