Tag: using
3 posts
-
C++ Name Hiding: Why a Derived Function Hides Base Overloads and How using Fixes It
Why a derived-class function hides every base-class overload with the same name, why the dangerous case compiles and silently calls the wrong function, and how using-declarations and -Woverloaded-virtual prevent it.
-
C++ using vs typedef: Alias Templates, Function Pointers, and the const Trap
How C++ using and typedef differ: alias templates, readable function pointer types, the const-pointer typedef trap, and why an alias never creates a new type.
-
C++ Namespaces: using-Declarations vs Directives, Anonymous Namespaces and ADL
C++ namespaces explained: avoiding name collisions, using-declarations vs using-directives, nested namespaces, anonymous namespaces, aliases, ADL.