I have a simple class which uses Poco Timer:
MyClass::MyClass(){
Timer timer(250,5000);
TimerCallback<MyClass> callback(*this, &MyClass::onTimer);
timer.start(callback);
}
MyClass::onTimer(){
cout <<"Tick"<<endl;
}
Obviously, the code for callback initialization is incorrect. What is the correct way to call a function from within the same class (this) with TimerCallback?