Prev: How to obtain a typedef for the unsigned version of a signed character type
Next: Does non- extern const have internal linkage?
From: Seungbeom Kim on 12 Mar 2010 03:10 Bart van Ingen Schenau wrote: > > One of the key properties of an anonymous namespace is that it does > not have a name, so it does not make sense to talk about the linkage > of an anonymous namespace. It does have a name, but it's just that a unique name is assigned by the compiler and not known to the user. 7.3.1.1[namespace.unnamed]: An unnamed-namespace-definition behaves as if it were replaced by namespace unique { /* empty body */ } using namespace unique; namespace unique { namespace-body } where all occurrences of unique in a translation unit are replaced by the same identifier and this identifier differs from all other identifiers in the entire program. -- Seungbeom Kim [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] |