Boost logo

Boost :

From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2007-12-12 16:08:39


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk