Translations:Development/Tutorials/Common Programming Mistakes/8/en: Difference between revisions
Appearance
Importing a new version from external source |
(No difference)
|
Latest revision as of 07:31, 26 October 2019
Symbols defined in a C++ anonymous namespace do not have internal linkage. Anonymous namespaces only give a unique name for that translation unit and that is it; they do not change the linkage of the symbol at all. Linkage is not changed on those because the second phase of two-phase name lookup ignores functions with internal linkages. Also, entities with internal linkage cannot be used as template arguments.