
Ion,
Thank you for your reply. According to Boost.Interprocess documentation,
you *can* share std::vector by using managed shared memory and
Boost.Interprocess allocator (please see "Creating vectors in shared
memory" in "Quick guide for the impatient" in Boost.Interprocess
documentation). Following those guidelines and the example therein , I
have successfully shared std::vector object using following -
using boost::interprocess;
typedef allocator
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
> 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users