I am writing my own class and inside i am using some other timer-like class, required using of functional type to be passed in. This type is defined as typedef void (* timer_callback)();
(regular void function with no parameters). And of course it is working good with functions defined such way: void SomeFunc() {...}
But i need to pass in class-function defined like:
void someClass::SomeFunc() {...}
. Sure, direct assign gives me error: unresolved overloaded function type. Have tried reinterpret_cast but did not get success.
Are there any way how to perform this trick?