Hi ivc 71,
The error you are seeing is the same as this error (which, I hope, clarifies):
int foo(int x) { return 1; }
int foo(char c) { return 2; }
int main()
{
typedef int (*fn)(int x);
fn fnptr = foo;
if(fnptr == foo) // error here; which foo?
return 5;
return 6;
}
HTH,
--Eljay