Opened 10 years ago
Closed 9 years ago
#8067 closed Bugs (fixed)
basic_string_ref::find(basic_string_ref) typo '=' instead of '=='
| Reported by: | 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 , 10 years ago
comment:2 by , 10 years ago
| Owner: | changed from to |
|---|
comment:3 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
This was merged to release in [83403]
Note:
See TracTickets
for help on using tickets.

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