« Return to Thread: Multi Index Container ordered index - infinte loop when advancing iterator which is the end iterator

Re: Multi Index Container ordered index - infinte loop when advancing iterator which is the end iterator

by Joaquin M Lopez Munoz :: Rate this Message:

Reply to Author | View in Thread

Avi Revivo <revivoavi <at> hotmail.com> writes:

> Hi All,
>
> Is this a known issue that if due to a wrong usage the .end iterator is
> advanced there is an infinte loop?

Hello Avi,

As Felipe remarks, advancing end() is illegal, and anything
can happen if you perform an illegal operation. You can detect
this and other wrong usages of Boost.MultiIndex in a more
convenient fashion by using the provided safe mode:

http://boost.org/libs/multi_index/doc/tutorial/debug.html#safe_mode

HTH,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: Multi Index Container ordered index - infinte loop when advancing iterator which is the end iterator