Skip to content

Latest commit

 

History

History
59 lines (52 loc) · 1.4 KB

File metadata and controls

59 lines (52 loc) · 1.4 KB
title Linkage in Names with Class Scope | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic language-reference
dev_langs
C++
helpviewer_keywords
scope [C++], linkage rules
linkage [C++], scope linkage rules
names [C++], scope linkage rules
classes [C++], scope
external linkage, scope linkage rules
class names [C++], linkage
classes [C++], names
scope [C++], class names
class scope [C++], linkage in names with
ms.assetid 45275ff3-6e94-4967-82c8-ba540ef4da28
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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 typedef names have no linkage.

Microsoft Specific

  • Functions declared as friend functions must have external linkage. Declaring a static function as a friend generates an error.

END Microsoft Specific

See Also

Program and Linkage