multi_index: changing elements?

Hello! I'm quiet new to boost and especially multi_index. I want to get a non-constant reference to elements I inserted into this container, but when dereferencing the iterator all I get is a const reference. What am I doing wrong? Please have a look at the attached example. Thanks a lot, Ciao, Olaf Leidinger

I'm quiet new to boost and especially multi_index. I want to get a non-constant reference to elements I inserted into this container, but when dereferencing the iterator all I get is a const reference. What am I doing wrong? Please have a look at the attached example.
You can update elements by means of member functions: replace(), modify(), modify_key() http://www.boost.org/doc/libs/1_37_0/libs/multi_index/doc/tutorial/basics.ht...
participants (2)
-
Igor R
-
Olaf Leidinger