[Solved] pointer to a member function of a class


The pointer-to-member operators .* and ->* have lower precedence than function call syntax. You need to do:

(b1.*ptr)();

solved pointer to a member function of a class