我有以下情况:
struct A {
inline void doSomething(std::string s) { ... }
};
struct B : public A {
inline void doSomething(int i) { ... }
inline void doSomething(Object o) { ... }
};
...
B b;
b.doSomething("my text"); // compiler error - argument does not match any in class B
为什么编译器不能看到方法A :: doSomething()?