Linkage in Names with Class Scope
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Linkage in Names with Class Scope.
The following linkage rules apply to names with class scope:
Static class members have external linkage.
Class member functions have external linkage.
Enumerators and
typedefnames have no linkage.
Microsoft Specific
- Functions declared as
friendfunctions must have external linkage. Declaring a static function as afriendgenerates an error.
END Microsoft Specific
Show: