
26 Jul
2010
26 Jul
'10
6 p.m.
On 26/07/2010 18:41, this_thread wrote:
I'm still having a little trouble. The allocator they use in string_test.cpp is one totally implemented there for that project; I'm not going to have to do / copy that am I? I've tried:
typedef boost::interprocess::basic_string
BoostString;
allocation_type does not exist, it must be any shared memory allocator of type char.
AND:
typedef boost::interprocess::allocator
CharAllocator; typedef boost::interprocess::basic_string BoostString;
-> boost::interprocess::CharAllocator is not anything declared in namespace boost::interprocess. Try with just tCharAllocator. In short: it's the same as vector<char>, but with an extra second parameter with type std::char_traits<char>. Best, Ion