13 Oct
2015
13 Oct
'15
2:29 p.m.
I have been trying to store boost interval map in shared memory, but my
code below does not compile when I pass allocator while constructing map.
After seeing template definition of boost interval_map I assume that boost
icl only supports std::allocator. Is there any way to store this container
in shared memory.
int main () {
static bip::managed_shared_memory
global_mm(boost::interprocess::open_or_create,
"MySharedMemory",65536 //segment name
);
static bip::allocator