[Boost-bugs] [Boost C++ Libraries] #8067: basic_string_ref::find(basic_string_ref) typo '=' instead of '=='

Subject: [Boost-bugs] [Boost C++ Libraries] #8067: basic_string_ref::find(basic_string_ref) typo '=' instead of '=='
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-15 01:42:50


#8067: basic_string_ref::find(basic_string_ref) typo '=' instead of '=='
--------------------------------------------------+-------------------------
 Reporter: Gor Nishanov <GorNishanov@…> | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: utility
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 size_type find(basic_string_ref s) const {
             const_iterator iter = std::search ( this->cbegin (),
 this->cend (),
                                                 s.cbegin (), s.cend (),
 traits::eq );
             return iter = this->cend () ? npos : std::distance (
 this->cbegin (), iter );
             }

 Should be:
             return iter == this->cend () ? npos : std::distance ( this-

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8067>
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:12 UTC