Passing pointer to member function as template parameter to member function of another class

Passing pointer to member function as template parameter to member function of another class

Post by Thomas Mae » Sat, 05 Nov 2005 04:37:20



XXXX@XXXXX.COM writes:


fun points to a member function. What object do you want to invoke
*fun on?



What does f name?



The correct syntax for taking the address of the member function fun
of class P is &P::fun:

return ff.f<&P::fun>(x, y, z);

[ See http://www.yqcomputer.com/ ]
[ comp.lang.c++.moderated. First time posters: Do this! ]