Commit 723a952d authored by Quentin Khan's avatar Quentin Khan

Replace deprecated inria::binary_search with std::lower_bound

The call was deprecated because it duplicates an STL feature.
parent 1e601d26
......@@ -191,7 +191,7 @@ struct interval_distribution {
Pivots pivots;
template<class U>
std::uint64_t operator()(const U& e) {
auto p_it = binary_search(tag::first_or_next{}, std::begin(pivots), std::end(pivots), e, comp);
auto p_it = std::lower_bound(std::begin(pivots), std::end(pivots), e, comp);
std::uint64_t p_idx = p_it - std::begin(pivots);
if(p_idx > pivots.size()) {
throw std::runtime_error("Element distributed to non existing "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment