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

Hi All, Is this a known issue that if due to a wrong usage the .end iterator is advanced there is an infinte loop? Thanks in advance, Avi Revivo -- View this message in context: http://www.nabble.com/Multi-Index-Container-ordered-index---infinte-loop-whe... Sent from the Boost - Dev mailing list archive at Nabble.com.

On Dec 12, 2007 2:17 PM, Avi Revivo <revivoavi@hotmail.com> wrote:
Hi All,
Is this a known issue that if due to a wrong usage the .end iterator is advanced there is an infinte loop?
Advancing an end iterator invokes undefined behavior.
Thanks in advance, Avi Revivo -- View this message in context: http://www.nabble.com/Multi-Index-Container-ordered-index---infinte-loop-whe... Sent from the Boost - Dev mailing list archive at Nabble.com.
-- Felipe Magno de Almeida

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
participants (3)
-
Avi Revivo
-
Felipe Magno de Almeida
-
Joaquin M Lopez Munoz