From: Seungbeom Kim on
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! ]