I have 2 classes, A and B
A has a function called foo();
B has a static function pointer designed to point towards foo, let's call it fuu.
The definition of fuu in class B looks like this
static void (A::*fuu)();
Somewhere along the runtime class A sets fuu. The code I wrote resembles this
B::fuu = &A:foo;
This properly sets the function pointer, however I am unable to use it (I am calling it in the B class)
I've tried
*fuu();
B::fuu();
B::*fuu();
Is there a syntax error preventing me from dereferencing?
TLDR: Trying to call a non-static function from an instance of class A, from a static function in class B