RE: [Boost-users] configuring boost on MS Visual Studio 6 where the installation drive isn't C:

Someone using the wrong account to write email
Wayne,
There might still be conflicts if the compiler can't place everything into it's proper namespace. In addition, some sdk's force everything into std namespace
Really? That would be truly evil.
or into the global namespace. If you use "using namespace boost;", you're basically doing the same thing.
There are a couple of options that could be used separately. <snip> 2. The second is wrap the offending sdk in it's own namespace. Here is what I have come up with. I have three files here. c.h is the original function. b.h wraps it in it's own namespace, and main.cpp can only use it with the new namespace. Simple example, but hopefully it illustrates what I'm trying to get across. <snip>
That's all very well for inline code, but how about external code that's linked in later, that has been compiled without using the namespace? By the way, possessive "its" has no apostrophe.
participants (1)
-
Ben Hutchings