|
Boost Users : |
Subject: Re: [Boost-users] [Interprocess] Different outputs under bash and gdb
From: Aditya Gadre (agadre_at_[hidden])
Date: 2010-11-24 09:41:26
Ion,
My appologies...I did not realize that typedef refers to
boost::interprocess::vector instead of std::vector. So now I have this
new question - what would one need to do in order to share his/her
custom C++ classes.
Thanks,
- Aditya
On 11/24/2010 04:47 AM, Ion Gaztañaga wrote:
> 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 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