Re: [Boost-bugs] [Boost C++ Libraries] #6683: find family of functions needs const Range1T& Input overloads

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6683: find family of functions needs const Range1T& Input overloads
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-14 03:15:31


#6683: find family of functions needs const Range1T& Input overloads
--------------------------------+-------------------------------------------
  Reporter: sairony@… | Owner: marshall
      Type: Feature Requests | Status: assigned
 Milestone: To Be Determined | Component: algorithm
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by marshall):

 Ok - my bad. I thought that you were talking about the stuff I just added
 like {{{boyer_moore_search}}}, etc.
 You meant the string routines.

 So, in addition to
 {{{
 iterator_range<typename range_iterator<Range1T>::type>
 find_first( Range1T& Input, const Range2T& Search);
 }}}
 you want something like:
 {{{
 const_iterator_range<typename const_range_iterator<Range1T>::type>
 find_first( const Range1T& Input, const Range2T& Search);
 }}}

 Basically, when you pass in a constant range, you get back a constant
 range.
 is that correct?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6683#comment:3>
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:09 UTC