From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-11-26 07:51:22
>Why not use the anonymous namespace, which actually provides a unique
name for you? It seems simpler to explain, and lets the compiler do the
work of coming up with a unique name (which is guaranteed to work!).
Is there some reason I don't know of not to recommend the anonymous
namespace for this?
We're talking at cross purposes: an anonymous namespace does not solve the
issue: anonymous namespaces are unique for each translation unit, not for
each header included by that translation unit.
- John Maddock
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk