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.11.0-rc1~134^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7;p=icinga2 Timer::TimerThreadProc(): use C++11 lambda instead of bind() refs #6737 --- 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(); }); } }