during a check with the static code analysis tool cppcheck, the tool discovered a dangerous usage of erase (STL) at file jlint/string_pool.hh at line 70
cppcheck printed the following message:
Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
Please refer the link, here is explained use it in the correct way:
http://sourceforge.net/apps/phpbb/cppcheck/viewtopic.php?f=4&t=47
Best regards
Ettl Martin