I would like to create a callback for this function prototype :
Timer_Install(int, void (*)(), int);
So far, I tried to use a lambda function with std=c++11
auto receive = [this](){receptMessage();}; // pointer on this->receptMessage();
Timer_Install(0, receive, 1);
Wich result in the following error :
error : canot convert 'Obj::method::' to 'void(*)()'
I have also tried various things like :
void (*ptrReception)();
ptrReception = this->receptMessage;
Timer_Instal(0, ptrReception, 1);
error : cannot convert 'Obj::method' from type 'void(Obj::)()' to type 'void(*)()'
Is there anyway to get this working ?