[Boost-bugs] [Boost C++ Libraries] #7989: [string_algo] find_iterator broken in 1.53?

Subject: [Boost-bugs] [Boost C++ Libraries] #7989: [string_algo] find_iterator broken in 1.53?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-06 09:18:21


#7989: [string_algo] find_iterator broken in 1.53?
---------------------------------+------------------------------------------
 Reporter: gast128@… | Owner: marshall
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: string_algo
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 The find_iterator uses in its increment function the plus operator. This
 compiles for random access iterators but not for iterators with less
 capabilities, e.g.:

 std::list<char> lst;
 std::vector<char> vec;
 std::string str;

 //ok
 boost::make_find_iterator(str, boost::first_finder(str));

 //ok
 boost::make_find_iterator(vec, boost::first_finder(str));

 //not ok
 boost::make_find_iterator(lst, boost::first_finder(str));

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7989>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC