#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.f(); //error - as the function is hidden
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEEKewogICAgdm9pZCBmKCkgeyBzdGQ6OmNvdXQgPDwgIkE6OmYoKSIgPDwgc3RkOjplbmRsOyB9Cn07CgpzdHJ1Y3QgQiA6IEEKewogICAgdm9pZCBmKGludCkgeyBzdGQ6OmNvdXQgPDwgIkI6OmYoaW50KSIgPDwgc3RkOjplbmRsOyB9Cn07CgppbnQgbWFpbigpIHsKCUIgYjsKICAgICAgICBiLmYoMTApOyAvL29rCiAgICAgICAgYi5mKCk7ICAgLy9lcnJvciAtIGFzIHRoZSBmdW5jdGlvbiBpcyBoaWRkZW4KCXJldHVybiAwOwp9