A
Angel Tsankov
Considering the following declarations
void f1( );
namespace {
void f2( );
}
both f1 and f2 have external linkage, but may f2 be referred to by names from scopes of other translation units?
If so, how? If no, then this constradicts the definition of "a name with external linkage" (3.5.2):
When a name has external linkage, the entity it denotes can be referred to by names from scopes of
other translation units or from other scopes of the same translation unit.
void f1( );
namespace {
void f2( );
}
both f1 and f2 have external linkage, but may f2 be referred to by names from scopes of other translation units?
If so, how? If no, then this constradicts the definition of "a name with external linkage" (3.5.2):
When a name has external linkage, the entity it denotes can be referred to by names from scopes of
other translation units or from other scopes of the same translation unit.