From: Florian J. <flo...@we...> - 2011-05-07 05:40:05
|
Am 06.05.2011 20:48, schrieb Tim E. Real: > Yes, that works great! I used it in controller graphs. > This problem mainly applies to maps, which don't return anything on erase. > I should get in there and try those official techniques again, and see > if I've become any smarter to fix the problem... > the guys at #c++ @ freenode.net told me that map::erase(iterator++); is the right thing to do this is equivalent to: tempiterator = iterator; iterator++; map::erase(tempiterator); //iterator remains valid and points to the element after the erased one flo |