Z
zx.zhangxiong
Dear all,
I'm puzzled about the usage of class member function. Any help would be
appreciated.
class Account {
...
public:
void test(int i) {};
...
};
// error: must use .* or ->* to call pointer-to-member function
void (*funcPtr)(int i) = &Account::test;
How can I call class member function by a globle function pointer?
I'm puzzled about the usage of class member function. Any help would be
appreciated.
class Account {
...
public:
void test(int i) {};
...
};
// error: must use .* or ->* to call pointer-to-member function
void (*funcPtr)(int i) = &Account::test;
How can I call class member function by a globle function pointer?