2 Aug
2009
2 Aug
'09
5:05 a.m.
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/sharedmemorybetwe... Best, Ion