Let\'s say I have a class such as
class c {
// ...
void *print(void *){ cout << \"Hello\"; }
}
And then I have a vector of c
My guess would be this is b/c its getting mangled up a bit by C++ b/c your sending it a C++ pointer, not a C function pointer. There is a difference apparently. Try doing a
(void)(*p)(void) = ((void) *(void)) &c[0].print; //(check my syntax on that cast)
and then sending p.
I've done what your doing with a member function also, but i did it in the class that was using it, and with a static function - which i think made the difference.