
9 Jun
2007
9 Jun
'07
10:43 p.m.
"Guillaume Melquiond" <guillaume.melquiond@ens-lyon.fr> wrote in message news:1181413681.3738.16.camel@liege.msr-inria.inria.fr...
Le samedi 09 juin 2007 à 14:03 -0400, Gennadiy Rozental a écrit :
Can anyone explain why unnamed namespace is a problem?
Inline functions referring to the content of an unnamed namespace will break the one-definition rule, when their header is included several times. Undefined behavior ensues.
I don't mean in general. static vars have the same issue. I mean why is it reported by our tools? Gennadiy