Follow-up Comment #10, bug #5555 (project wormux):
list<int>::iterator i = instance.begin();
while (i != instance.end())
{
i = instance.erase(i);
}
erase returns the next iterator. this could be a solution but in this case,
we should take care of not using ++i.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?func=detailitem&item_id=5555>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna