class A {
public:
virtual void foo(int b) {}
virtual void foo(char* b) {}
};
class B : public A{
virtual void foo(int b) {}
};
void
foo()
{
B* b;
b->foo("tgre");
}
this code does not compile, neither in Visual C++ nor in Codewarrior.
Does someone know why ?
Aymeric Bard.
public:
virtual void foo(int b) {}
virtual void foo(char* b) {}
};
class B : public A{
virtual void foo(int b) {}
};
void
foo()
{
B* b;
b->foo("tgre");
}
this code does not compile, neither in Visual C++ nor in Codewarrior.
Does someone know why ?
Aymeric Bard.
Comment