Fixed bug in boost::algorithm::find_all with overlapping results; thanks to cedstrom for the report and the patch; Refs #7784

[SVN r82117]
This commit is contained in:
Marshall Clow
2012-12-20 15:52:59 +00:00
parent 54d2649b8c
commit d6d75c9a31
2 changed files with 19 additions and 1 deletions

View File

@ -132,7 +132,10 @@ namespace boost {
// increment
void increment()
{
m_Match=this->do_find(m_Match.end(),m_End);
if(m_Match.begin() == m_Match.end())
m_Match=this->do_find(m_Match.end(),m_End);
else
m_Match=this->do_find(m_Match.begin()+1,m_End);
}
// comparison