Update Timer class to accept functions with any number of parameters

This commit is contained in:
2019-01-05 13:27:47 +01:00
parent 7ad040c6c1
commit 4c66aa0831
6 changed files with 77 additions and 17 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ Device::~Device()
void Device::Start()
{
m_timer.Start(10000, std::bind(&Device::UpdatePresentDevices, this));
m_timer.Start(10000, static_cast<std::function<void()>>(std::bind(&Device::UpdatePresentDevices, this)));
}
void Device::Stop()