
18 Jun
2009
18 Jun
'09
7:35 a.m.
2009/6/18 Daniel Hulme <st@istic.org>:
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