Using subscript operator with interprocess map

Hello,
I'm using a map from basic_string to int on managed_mapped_file (boost 1.35.0).
Everything works except that I get a compilation error if I use subscript
operator. I'm trying something like this:
#include

El 03/09/2010 9:18, Michi Mutsuzaki escribió:
Hello,
I'm using a map from basic_string to int on managed_mapped_file (boost 1.35.0). Everything works except that I get a compilation error if I use subscript operator. I'm trying something like this:
char_string needs an allocator in its constructor (not tested code): (*mymap)[char_string("key", alloc_inst)] = 1; Best, Ion
participants (2)
-
Ion Gaztañaga
-
Michi Mutsuzaki