ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.11k stars 440 forks source link

Allow upper_bound to work in the presence operator & #1632

Closed cdglove closed 3 years ago

cdglove commented 3 years ago

Fixes ericniebler/range-v3#1631

upper_bound and lower bound were both implemented with references. lower_bound retains that design, whereas upper_bound was changed to pointers in commit 5b8594dcd41a781d0490cf1ea8d555782cea0cd8.

That looks like a mistake, which this commit undoes.