fix bug for map.erase

This commit is contained in:
aholic 2014-10-25 18:29:04 +08:00
parent 11de561332
commit e85a3ef8d3

View File

@ -74,7 +74,7 @@ namespace CppJieba
{ {
if(_stopWords.end() != _stopWords.find(itr->first)) if(_stopWords.end() != _stopWords.find(itr->first))
{ {
wordmap.erase(itr++); itr = wordmap.erase(itr);
continue; continue;
} }