Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2006-09-15 03:01:58

On Thu, 14 Sep 2006 21:36:14 +0300, "Peter Dimov" <pdimov_at_[hidden]>

>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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at