Boost logo

Boost Users :

Subject: Re: [Boost-users] Using subscript operator with interprocess map
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-09-04 04:34:24


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net