Update Timer class to accept functions with any number of parameters
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ Device::~Device()
|
||||
|
||||
void Device::Start()
|
||||
{
|
||||
m_timer.Start(5000, std::bind(&Device::UpdatePresentDevices, this));
|
||||
m_timer.Start(5000, static_cast<std::function<void()>>(std::bind(&Device::UpdatePresentDevices, this)));
|
||||
}
|
||||
|
||||
void Device::Stop()
|
||||
|
||||
Reference in New Issue
Block a user