Inside some class called Light
, I have a static function.
I would like to "fire" a delegate from it ,
Inside Light.h
static float intepreterDelegate(char *arg){
// here I need to call the function pointer inside Light itself
Light b;
return b.fpAction(arg); // ** error: "expected unqualified id"
};
float (*fpAction)(char*) = 0 ; // the actual pointer
How would I create the right syntax for this ?
b.(*fpAction)("arg");
EDIT:
(b.*b.fpAction)(arg);
ERROR: right hand operator to * has non.