Boost Users :
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-01-02 18:05:30
"Daryle Walker" <darylew_at_[hidden]> wrote in message
> On 12/27/05 10:52 PM, "Gennadiy Rozental" <gennadiy.rozental_at_[hidden]>
>>> I had the same problem with vc 7.1.
>> Strange. I never had problems like this with vc7.1
>>> If you add 'static' to all
>>> variables definitions in anonymous namespaces it works fine.
>> But anonimous namespace should do the trick itself!
> I don't think that the two concepts are identical. For a global object
> defined in a file, "static" limits that object to only be reachable to
> items within that file. An object in the anonymous namespace has an
> unreachable name outside its file, but the object itself is still
> technically a program-wide global.
Well, in this case it should lead to the same result: no duplicate symbols
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net