1997-08-19 03:34:40 -04:00
|
|
|
struct Fooey {
|
|
|
|
void f(char* pX);
|
|
|
|
void f(int in);
|
|
|
|
void f(float fx);
|
|
|
|
void h(double dx);
|
|
|
|
};
|
|
|
|
|
1999-01-18 16:42:34 -05:00
|
|
|
void Fooey::f(char*) { } // ERROR - candidate
|
|
|
|
void Fooey::f(int) { } // ERROR - candidate
|
|
|
|
void Fooey::f(float) { } // ERROR - candidate
|
1997-08-19 03:34:40 -04:00
|
|
|
void Fooey::h(double zahl) { }
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
Fooey Blah;
|
|
|
|
void (Fooey::*pointer)(double);
|
|
|
|
pointer = &Fooey::f; // ERROR - don't call Fooey::h
|
|
|
|
(Blah.*pointer)(42.5);
|
|
|
|
return 0;
|
|
|
|
}
|