Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] Different outputs under bash and gdb
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-11-24 04:47:37


On 23/11/2010 22:23, Aditya Gadre wrote:
> Dear all,
>
> I have a question about proper use of Boost.Interprocess for sharing
> custom C++ classes. I recently started using Boost.Interprocess and have
> been successful in sharing boost::array, std::vector<float>,
> std::vector< boost::array<float, 2> > etc using
> boost::interprocess::managed_shared_memory and
> boost::interprocess::allocator.

You can't share std::vector, it contains raw pointers. You must use
boost::interprocess:vector with boost::interprocess::allocator.

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