Boost logo

Boost :

Subject: Re: [boost] [hash][msvc 8.0] <boost/functional/hash/detail/float_functions.hpp> issuing a using namespace std directive?
From: Daniel James (daniel_james_at_[hidden])
Date: 2009-06-18 03:35:40


2009/6/18 Daniel Hulme <st_at_[hidden]>:
>
> Yeah, I've tripped over this MSVC bug as well. 'using namespace' in
> namespace scope 'leaks' out into file scope. It's pretty annoying
> because it still occurs over header file boundaries. The bug is still
> present in VC9, I believe, but I haven't tried 10 yet. (Microsoft knows
> it exists but declines to fix it in old compilers.)

When I tested it, it didn't affect VC9 although that might just be for
this specific case. I've changed it so that there aren't any templates
in the same namespace as the 'using namespace' which I think fixes the
problem. If not, I can use an alternative implementation for Visual
C++.

Daniel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk