[ad_1]
The pointer-to-member operators .* and ->* have lower precedence than function call syntax. You need to do:
(b1.*ptr)();
[ad_2]
solved pointer to a member function of a class
[ad_1]
The pointer-to-member operators .* and ->* have lower precedence than function call syntax. You need to do:
(b1.*ptr)();
[ad_2]
solved pointer to a member function of a class