
24 Nov
2010
24 Nov
'10
3:22 p.m.
On 24/11/2010 15:41, Aditya Gadre wrote:
Ion,
My appologies...I did not realize that typedef refers to boost::interprocess::vector instead of std::vector. So now I have this new question - what would one need to do in order to share his/her custom C++ classes.
Replace raw pointers with offset_ptr's and avoid storing references and static members and avoid virtuals. See documentation ("Limitations When Constructing Objects In Mapped Regions") for that: http://www.boost.org/doc/libs/1_45_0/doc/html/interprocess/sharedmemorybetwe... Best, Ion