I'm not yet very familiar with these but maybe someone can shine light on this example.
Imagine I have class CFoo and it will have a function to add a handler and a function which is a function pointer.
So something like this:
class CFoo {
int *pointedFunc(int a, int b) = 0;
void setFunc(int *func(int a, int b))
{
pointedFunc = func;
}
};
Given the above context, I want to know the proper way of doing this. I don't think I have done it properly. Also, how would I go about calling pointedFunc?
Thanks