Boost logo

Boost Users :

From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2004-02-09 10:25:53


Someone using the wrong account to write email
<Administrator_at_[hidden]> wrote:
> 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.


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