cast of function type

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?

You can't pass member function as a function pointer. What you can do is to declare the member function as static and assign that as the function pointer, but of course then you don't have an object associated with it. You could assign the object as static variable of the class and access that from the static member function though. Not really ideal but might work depending on your use case.

Cheers, Jarkko