From a483ff86474ff2d7d5003cc7fcf550dc24745f7e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 26 Feb 2025 18:38:32 +0800 Subject: [PATCH] mutation: replace boost::upper_bound with std::ranges::upper_bound Reduces dependencies on boost/range. Signed-off-by: Kefu Chai Closes scylladb/scylladb#23119 --- mutation/range_tombstone.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mutation/range_tombstone.cc b/mutation/range_tombstone.cc index 72cddee8af..e5b56c6033 100644 --- a/mutation/range_tombstone.cc +++ b/mutation/range_tombstone.cc @@ -8,8 +8,6 @@ #include "range_tombstone.hh" -#include - std::optional range_tombstone::apply(const schema& s, range_tombstone&& src) { bound_view::compare cmp(s); @@ -66,7 +64,7 @@ void range_tombstone_accumulator::apply(range_tombstone rt) { auto cmp = [&] (const range_tombstone& rt1, const range_tombstone& rt2) { return _cmp(rt1.end_bound(), rt2.end_bound()); }; - _range_tombstones.insert(boost::upper_bound(_range_tombstones, rt, cmp), std::move(rt)); + _range_tombstones.insert(std::ranges::upper_bound(_range_tombstones, rt, cmp), std::move(rt)); } void range_tombstone_accumulator::clear() {