sandSpiderX wrote:
Hi,
I am trying the following
struct X
{
static void f(){}
};
void (X::*pf)();
int main()
{
pf=X::f;
return 0;
}
but the compiler flags the error, saying no mathing function found.
Help
sandSpiderX
Treat the static member like a regular non-member function with the
exception of using the scope resolution operator. See §8.1.1c of TC++ARM.
--
If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true.-Bertrand Russell