Boost logo

Boost Users :

Subject: Re: [Boost-users] non-POD C++ objects and Boost.Interprocess
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-08-02 01:05:47


Selçuk Cevher escribió:
> Hi,
>
> Is it possible to pass user-defined "non-POD" C++ class objects to
> message queues and retrieve them back on the receiver side using
> Boost.Interprocess ?
>
> Thanks.

Yes, provided both processes are compiled with the same ABI, but
remember that non-POD is limited to "non-virtual, non mutable static
classes with non-raw pointers", the same classes you are allowed to put
in managed_shared_memory. See:

"Limitations When Constructing Objects In Mapped Regions"

http://www.boost.org/doc/libs/1_39_0/doc/html/interprocess/sharedmemorybetweenprocesses.html

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net