name hiding and the using-declaration
Thursday, March 12th, 2009This post is inspired by a question posed by a colleague some time ago. Consider following C++ code fragment in which B derives from A and declares a fun with a different signature: #include <iostream> struct A { void fun(int x) { std::cout << “int A\n”; } }; struct B: A { void fun(float x) […]