From c89adc3636bd56c7dcd7654a7ddfa37bed62dff3 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Mon, 19 Feb 2024 10:03:41 +0000 Subject: [PATCH] .contains is C++20 only --- src/dpp/cluster/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/cluster/timer.cpp b/src/dpp/cluster/timer.cpp index 75c7d10c57..e6d7df1814 100644 --- a/src/dpp/cluster/timer.cpp +++ b/src/dpp/cluster/timer.cpp @@ -107,7 +107,7 @@ void cluster::tick_timers() { */ bool not_deleted = ([handle, this]() -> bool { std::lock_guard l(timer_guard); - return timer_list.contains(handle); + return timer_list.find(handle) != timer_list.end(); }()); if (not_deleted) { timer_reschedule(t);