Ticket #8067 (closed Bugs: fixed)

Opened 4 years ago

Last modified 3 years ago

basic_string_ref::find(basic_string_ref) typo '=' instead of '=='

Reported by: Gor Nishanov <GorNishanov@…> Owned by: marshall
Milestone: To Be Determined Component: utility
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:


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-


Change History

comment:1 Changed 4 years ago by marshall

(In [82901]) Fixed bug in string_ref::find; Refs #8067

comment:2 Changed 4 years ago by marshall

  • Owner changed from no-maintainer to marshall

comment:3 Changed 3 years ago by marshall

  • Status changed from new to closed
  • Resolution set to fixed

This was merged to release in [83403]


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.