Reinitializing list's begin iterator after few elements were erased from the head

This commit is contained in:
ENikS 2014-09-23 18:33:16 -04:00
parent 7a04f3d708
commit cda45b5131

View file

@ -544,7 +544,7 @@ public:
{
while (end() - pc >= (long)b.size() && memcmp(&pc[0], &b[0], b.size()) == 0)
{
erase(pc, pc + b.size());
pc = erase(pc, pc + b.size());
++nFound;
}
}