
24 Nov
2010
24 Nov
'10
5:38 p.m.
On 24/11/2010 17:33, Aditya Gadre wrote:
The code I already have uses std::vector to store data and it may not be possible to replace it with interprocess::vector. Is there any other container that may be used that has the same interface as std::vector. In the worst case, I can write a very simple class to hold data.
No, sorry, you need to replace std::vector with an shared memory friendly class. boost::interprocess::vector is the only one I know. In the future (c++0x) std::vector will support boost::interprocess allocators but meanwhile, you'll need to change your code. Best, Ion