Modify

Opened 5 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 Clow
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 5 years ago by Marshall Clow

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

comment:2 Changed 5 years ago by Marshall Clow

Owner: changed from No-Maintainer to Marshall Clow

comment:3 Changed 4 years ago by Marshall Clow

Resolution: fixed
Status: newclosed

This was merged to release in [83403]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Marshall Clow.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.