#include <iostream>
struct A
{
void f() { std::cout << "A::f()" << std::endl; }
};
struct B : A
{
void f(int) { std::cout << "B::f(int)" << std::endl; }
};
int main() {
B b;
b.f(10); //ok
b.A::f(); //ok - explicitly selecting the hidden function using scope resolution
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEEKewogICAgdm9pZCBmKCkgeyBzdGQ6OmNvdXQgPDwgIkE6OmYoKSIgPDwgc3RkOjplbmRsOyB9Cn07CgpzdHJ1Y3QgQiA6IEEKewogICAgdm9pZCBmKGludCkgeyBzdGQ6OmNvdXQgPDwgIkI6OmYoaW50KSIgPDwgc3RkOjplbmRsOyB9Cn07CgppbnQgbWFpbigpIHsKCUIgYjsKICAgICAgICBiLmYoMTApOyAgLy9vawogICAgICAgIGIuQTo6ZigpOyAvL29rIC0gZXhwbGljaXRseSBzZWxlY3RpbmcgdGhlIGhpZGRlbiBmdW5jdGlvbiB1c2luZyBzY29wZSByZXNvbHV0aW9uCglyZXR1cm4gMDsKfQ==