Amit Prakash Ambasta <amit.prakash.ambasta <at> gmail.com> writes:
>
> std::pair<index::iterator, index::iterator> iter = index.equal_range(value);
>
> while(iter.first != iter.second) {
>
>
> index.modify(
> iter.first,
> [](T& element) { ... }
> );
>
> iter.first++;
> }
>
> leads to segfaults and unexpected behavior.
>
> What would be right way to approach this?
This is a classic, please follow these links for further info:
http://stackoverflow.com/questions/29013600/
modifying-key-ranges-in-a-boost-multi-index-map-having-hashed-non-unique-keys
http://lists.boost.org/boost-users/2006/03/18048.php
Joaquín M López Munoz
Telefónica
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users