
On Thu, 14 Sep 2006 21:36:14 +0300, "Peter Dimov" <pdimov@mmltd.net> wrote:
Not quite... the general advice against putting unnamed namespaces in headers is one thing, explaining how the constant variable (unnamed)::_1 technically causes ODR violations is another.
Maybe, but I think the point is understanding that the compiler-generated name of an unnamed namespace is unique per translation unit, not per source file (and I can't think of any way a book or, say, a C++ course can explain -- for a proper meaning of "explain" :-) -- them without making the distinction clear; that's why I consider it 101). All the rest is a consequence. If I understand correctly the idiomatic expression "back off" it means "stop here" or something like that. Well, I'll do, as I don't think this discussion is actually useful to anyone. -- Gennaro.