How does non-virtual name hiding differ from overriding, and how do override or using-declarations expose mistakes?
Show answer and explanation
Any derived declaration with a given name can hide base declarations of that name during lookup, even when signatures differ and no virtual dispatch is involved. Overriding instead requires a base virtual function with a matching override signature and selects the final overrider through the dynamic type. Marking the derived declaration override makes a signature mismatch a compile error; it cannot be used for a non-virtual base member. A using Base::name declaration reintroduces hidden base overloads into the derived scope when the API intentionally needs both sets.
Any derived declaration with a given name can hide base declarations of that name during lookup, even when signatures differ and no virtual dispatch is involved. Overriding instead requires a base virtual function with a matching override signature and selects the final overrider through the dynamic type. Marking the derived declaration override makes a signature mismatch a compile error; it cannot be used for a non-virtual base member. A using Base::name declaration reintroduces hidden base overloads into the derived scope when the API intentionally needs both sets.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.