Say that six times fast... Why doesn't this compile in MSVC 2010?
class A {
public:
void foo(int a, int b) { };
void foo(int a) { };
};
class B: public A {
public:
void foo(int a, int b) { }; // <-- comment this out to compile
};
int main(int argc, char* argv[])
{
B b;
b.foo(1); // <-- doesn't compile... shouldn't B just inherit this overload?
}