mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-06 01:06:37 +02:00
Make find_iterator work with forward iterators; refs #7989
[SVN r82788]
This commit is contained in:
@ -134,8 +134,10 @@ namespace boost {
|
||||
{
|
||||
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);
|
||||
else {
|
||||
input_iterator_type last = m_Match.begin();
|
||||
m_Match=this->do_find(++last,m_End);
|
||||
}
|
||||
}
|
||||
|
||||
// comparison
|
||||
|
Reference in New Issue
Block a user