Modify

Opened 4 years ago

Closed 4 years ago

#8067 closed Bugs (fixed)

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:

Description

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-

Attachments (0)

Change History (3)

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 4 years ago by marshall

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

This was merged to release in [83403]

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain marshall.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.