Pointer to Member of Pointer

Rather infrequently stumbled upon operator 'pointer to member of pointer' operator ->*

Mentioning this because the error at first sounds like you just need the member of pointer operator (which is not the case)

expression preceding parentheses of apparent call must have (pointer-to-) function type

typedef bool (MyObjType::* CheckFunctions)(int); //
CheckFunctions myChecks[] = {};
//...
(this->*myChecks[j])(i)

Last updated