Hello,
I am getting the above compiler error for the attached project.
AssignMemberFunctionToFunctionPointer4.zip
What is causing this error and how can I correct it.
Thanks,
Stephen
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am getting the above compiler error for the attached project.
AssignMemberFunctionToFunctionPointer4.zip
What is causing this error and how can I correct it.
Thanks,
Stephen
Ok, I changed pfunctionPtr(this); to pfunctionPtr(*this); in TestFunction2 and that solved the issue.
However, I don't understand why I would have to derference "this". Doesn't TestFunction require a reference to this?