Code:
class Test2
{
static void Func1(int* a, int b)
{
}
static void Func1(void* a, int b)
{
}
};
class Test
{
public:
static void Func1(int* a, int b)
{
}
static void Func1(void* a, int b)
{
}
};
void* Do2()
{
//return (void(*)(int*,int)) &Test2::Func1;
return &Test2::Func1;
}
void* Do()
{
return (void(*)(int*,int)) &Test::Func1;
}
int _tmain(int argc, _TCHAR* argv[])
{
void* ppp1 = Do();
return 0;
}


Why did you deep-six statement 1? Could YOU, a sentient being, resolve the ambiguity without a hint??? Exactly what is your purpose in your approach?