I have the following function
static void p (){
}
I want to pass a function pointer to p into function x.
void x(void * ptr){
}
I am trying the following, and it is not working.
...
x(ptr);
Note x and p are in different classes. I am getting the following compiling error.
invalid conversion from 'void (*)()' to 'void*' [-fpermissive]