Is there a simple way to do this? I've tried the following:
typedef allocator<char,managed_shared_memory::segment_manager>
CharAllocator;
typedef boost::container::basic_string<char, std::char_traits<char>, CharAllocator>
my_basic_string;
std::string s(my_basic_string);
As @T.C. has said, you should use:
or
I prefer the second, but both will work.