|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-06-09 18:43:48
"Guillaume Melquiond" <guillaume.melquiond_at_[hidden]> wrote in message
news:1181413681.3738.16.camel_at_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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk