And what about the class?
Do i just need to  create allocators for the map and the string(the map's key)??


     typedef allocator<basic_string, managed_shared_memory::segment_manager>StrAllocator;
typedef Employee Value;
typedef std::pair<StrAllocator, Employee> ValueType;
typedef allocator<ValueType, managed_shared_memory::segment_manager>ShMemAllocator; typedef map<StrAllocator, Value, std::less<StrAllocator>, ShMemAllocator> MyMap;


Is this correct?
Thank you very much again...

Dann



On Mon, Feb 1, 2010 at 5:59 PM, Steven Watanabe <watanabesj@gmail.com> wrote:
AMDG


Daniel Veneros wrote:
I got one othr question, what if I want to share a MAP type between both
processes? a map that has a string as a key and a custom class as a value?
 

The map and the string both need to have allocators.


In Christ,
Steven Watanabe

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users