Modify

Ticket #8067 (closed Bugs: fixed)

Opened 14 months ago

Last modified 11 months 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:

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

Change History

comment:1 Changed 14 months ago by marshall

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

comment:2 Changed 14 months ago by marshall

  • Owner changed from no-maintainer to marshall

comment:3 Changed 11 months ago by marshall

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

This was merged to release in [83403]

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.