Translations:Development/Tutorials/Common Programming Mistakes/49/en
This code will potentially crash because it is a dangling iterator after the call to erase(). You have to rewrite the code this way:
This code will potentially crash because it is a dangling iterator after the call to erase(). You have to rewrite the code this way: