I want to declare type definition for a member function signature. Global function typedefs look like this:
typedef int (function_signature)(int, int); typed
It works for me:
#include class foo { public: int g (int x, int y) { return x + y ; } } ; typedef int (foo::*memberf_pointer)(int, int); int main() { foo f ; memberf_pointer mp = &foo::g ; std::cout << (f.*mp) (5, 8) << std::endl ; }