Re: [Boost-bugs] [Boost C++ Libraries] #12552: Change of the interface of Searching Algorithms breaks client code

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12552: Change of the interface of Searching Algorithms breaks client code
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-26 18:28:14


#12552: Change of the interface of Searching Algorithms breaks client code
-------------------------------+-------------------------
  Reporter: tusk.kun@… | Owner: marshall
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: algorithm
   Version: Boost 1.62.0 | Severity: Showstopper
Resolution: wontfix | Keywords:
-------------------------------+-------------------------
Changes (by marshall):

 * status: new => closed
 * resolution: => wontfix

Comment:

 First, I apologize for the lack of documentation of the changes. That has
 been corrected, and will appear in the 1.63.0 release, along with some
 porting notes. You can see those docs in the develop branch now.

 As for "why did I make this change", it's because the previous interface
 was throwing away useful information - to be precise, the end of the
 matched range. If you know the length of the pattern that you are
 searching for,, *and* you have random-access iterators, then recovering
 the end of the matched range is simple and cheap. However, that's not
 always the case. Consider a matcher that matches against a regular
 expression.

 I wrote a blog post about this titled "sometimes you get things wrong"
 here: https://cplusplusmusings.wordpress.com/2016/02/01/sometimes-you-get-
 things-wrong/

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12552#comment:1>
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:20 UTC