Opened 10 years ago

Closed 9 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-

Change History (3)

comment:1 by Marshall Clow, 10 years ago

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

comment:2 by Marshall Clow, 10 years ago

Owner: changed from No-Maintainer to Marshall Clow

comment:3 by Marshall Clow, 9 years ago

Resolution: fixed
Status: newclosed

This was merged to release in [83403]

Note: See TracTickets for help on using tickets.