mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
fix bug for map.erase
This commit is contained in:
parent
11de561332
commit
e85a3ef8d3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user