From 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 11 Mar 2019 11:17:26 +0100 Subject: [PATCH] Timer::TimerThreadProc(): use C++11 lambda instead of bind() refs #6737 --- lib/base/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/timer.cpp b/lib/base/timer.cpp index ff00e79aa..07a4f30de 100644 --- a/lib/base/timer.cpp +++ b/lib/base/timer.cpp @@ -310,6 +310,6 @@ void Timer::TimerThreadProc() lock.unlock(); /* Asynchronously call the timer. */ - Utility::QueueAsyncCallback(std::bind(&Timer::Call, timer)); + Utility::QueueAsyncCallback([timer]() { timer->Call(); }); } } -- 2.40.0