What are the differences between overriding virtual functions and hiding non-virtual functions?
What is function hiding? … is a form of name hiding. A simple example: void foo(int); namespace X { void foo(); void bar() { foo(42); // will not find `::foo` // because `X::foo` hides it } } This also applies to the name lookup in a base class: class Base { public: void foo(int); }; … Read more