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(); }); } }