From 98d674f7804b1b35b6c5211aa53785b42a51ad54 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 (cherry picked from commit 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7) --- 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 8feae7971..3d3dde7fd 100644 --- a/lib/base/timer.cpp +++ b/lib/base/timer.cpp @@ -327,6 +327,6 @@ void Timer::TimerThreadProc() lock.unlock(); /* Asynchronously call the timer. */ - Utility::QueueAsyncCallback(std::bind(&Timer::Call, timer)); + Utility::QueueAsyncCallback([timer]() { timer->Call(); }); } }