|
Boost Users : |
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2008-03-18 10:43:50
sankar lingam wrote:
>
>
>
> Can I create Boost multi_array in shared memory using
> Boost.InterProcess..?
> Can some one explain as to how this can be done.?
>
> I tried providing the Boost InterProcess Allocator to the
> Boost multi_array but it gives the
> expected compiler error of casting an offset<ptr> to T* , when
> the multi_array tries to convert
> return type of the allocator allocate function(which is an
> offset<ptr>) to T*.
>
> Can this problem be overcome by writing a custom stl
> compatible allocator wrapper over the interprocess allocator?
>
> Regards,
> Sankar
MultiArray is not compatible with Boost.Interprocess. I've never tried
that, so I can give any clue on how to solve this. It would interesting
to make MultiArray compatible with non-raw pointers, but this is a issue
MultiArray authors should address if they find it useful.
Regards,
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