[string.algo] find_iterator, gives compile error in Boost 1.53
Hello all, just dl Boost 1.53 and now I get a compile error in 'find_iterator' when using a forward iterator. Probably related to the change 'increment'. It now uses begin() + 1, and the + operator is not defined for the supplied iterator.
On Feb 5, 2013, at 12:55 PM, gast128
Hello all,
just dl Boost 1.53 and now I get a compile error in 'find_iterator' when using a forward iterator. Probably related to the change 'increment'. It now uses begin() + 1, and the + operator is not defined for the supplied iterator.
Please open a trac ticket at svn.boost.org, with example code. -- Marshall Marshall Clow Idio Software mailto:mclow.lists@gmail.com A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki
On Feb 6, 2013, at 1:24 AM, gast128
Marshall Clow
writes: Please open a trac ticket at svn.boost.org, with example code.
Ticket #7989. Trac has nuked my example though (i.e. it has translated '//') :(
Thank you! That was what I thought the problem was (from your description), but now I'm sure. I'm having some problems with the test suite, so I haven't checked in a fix, but if you want to patch your copy locally, changing line 138 of boost/algorithm/string/find_iiterator.hpp from: m_Match=this->do_find(m_Match.begin()+1,m_End); to: m_Match=this->do_find(++m_Match.begin(),m_End); _should_ fix the problem -- Marshall Marshall Clow Idio Software mailto:mclow.lists@gmail.com A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki
participants (2)
-
gast128
-
Marshall Clow