non-POD C++ objects and Boost.Interprocess
1 Aug
2009
1 Aug
'09
8:03 a.m.
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.
2 Aug
2 Aug
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
5596
Age (days ago)
5597
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ion Gaztañaga
-
Selçuk Cevher