From: Alexander A. Klimov Date: Mon, 11 Mar 2019 10:17:26 +0000 (+0100) Subject: Timer::TimerThreadProc(): use C++11 lambda instead of bind() X-Git-Tag: v2.10.5~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98d674f7804b1b35b6c5211aa53785b42a51ad54;p=icinga2 Timer::TimerThreadProc(): use C++11 lambda instead of bind() refs #6737 (cherry picked from commit 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7) --- 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(); }); } }