|
Boost Users : |
Subject: Re: [Boost-users] [Interprocess] Collection of base shared_ptr
From: Aaron_Wright_at_[hidden]
Date: 2012-04-06 19:45:52
Is it easy to figure out if I'll hit those conditions? Or are they
sprinkled all around?
I simply want to send messages through shared memory. I would like to do
it with some type safety. The messages would be structs like so:
struct Start {...};
struct Stop {...};
typedef
boost::variant
<
Start,
Stop
> Message;
Would raw pointers come into play? Would it depend on the contents of the
structs?
--- Aaron Wright From: Steven Watanabe <watanabesj_at_[hidden]> To: boost-users_at_[hidden] Date: 04/04/2012 09:52 AM Subject: Re: [Boost-users] [Interprocess] Collection of base shared_ptr Sent by: boost-users-bounces_at_[hidden] AMDG On 04/04/2012 08:26 AM, Ion Gaztañaga wrote: > El 03/04/2012 23:37, Aaron_Wright_at_[hidden] escribió: >> Hmmm. I was almost thinking the same thing, but I was hoping there was >> something I was missing. >> >> What about boost::variant? Can I stuff that into a queue in shared >> memory? > > I don't know boost::variant internals, but if it does not use any > virtual function, it could be a choice. > boost::variant doesn't use virtual functions, *but* under some conditions it can store a raw pointer which is also a problem for interprocess. In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users
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