
Hi!
I tried to use multi_index_container as a drop in replacement
for std::map and hoped that I could obtain non-const references
to the values therein.
Although returning a non-const reference might not be a problem for
a multi_index_container with only 1 sorting criterium the lib
and the compiler insist on const &. Workarounds beyond modify(...) available?
Markus
#include
multi_t;
int main() { multi_t test; test.insert(boost::make_tuple("a", "aa")); // will not compile element & ref = test.find("a"); std::string & s = ref.get<1>(); }