diff --git a/Util/Timer.h b/Util/Timer.h index 31666a8..fdd8620 100644 --- a/Util/Timer.h +++ b/Util/Timer.h @@ -29,7 +29,7 @@ public: Stop(); m_run.store(true, std::memory_order_release); - m_thread = std::thread([this, interval, function, arguments ...]() + m_thread = std::thread([this, interval, function, &arguments...]() { while (m_run.load(std::memory_order_acquire)) {