From e4965b16629b2ee1dbfb3697fdca611d22a5d933 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 25 Aug 2021 15:09:52 +0300 Subject: [PATCH] range_tombstone_list: Conceptualize erase_where() Just while at this code Signed-off-by: Pavel Emelyanov --- range_tombstone_list.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/range_tombstone_list.hh b/range_tombstone_list.hh index 638c148de1..1e53a22830 100644 --- a/range_tombstone_list.hh +++ b/range_tombstone_list.hh @@ -186,9 +186,8 @@ public: range_tombstone_list difference(const schema& s, const range_tombstone_list& rt_list) const; // Erases the range tombstones for which filter returns true. template + requires std::is_invocable_r_v void erase_where(Pred filter) { - static_assert(std::is_same>::value, - "bad Pred signature"); auto it = begin(); while (it != end()) { if (filter(*it)) {