
Jason Sachs wrote:
OK, let me ask a simpler question:
If I have a structure S which contains a shared memory allocator, can that structure be safely stored in shared memory? (e.g. if I construct S in one process, use the memory allocator to construct some other pointer p in shared memory, then locate S in another process and use the memory allocator to destroy pointer p, will that work properly, or have I invited Disaster?)
If the structure stores the allocator and all other pointers to any type
(say X) inside the structure are of the same type as
boost::pointer_to_other