Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
std::lower_bound returns the end of the search range, when failing to find a match.
The end of the search range is one position after the last valid position. So the value in this position is undefined, and we should not reference the value here to compare it with the target value.
Attachments
Issue Links
- links to