Boost logo

Boost Users :

Subject: Re: [Boost-users] boost and std collisons in c++0x
From: Michael Fawcett (michael.fawcett_at_[hidden])
Date: 2009-02-05 17:02:30


On Thu, Feb 5, 2009 at 4:02 PM, Sergey Sadovnikov
<flex_ferrum_at_[hidden]> wrote:
>
> Good example. But... You have to do something very _special_ if you
>
> want to get the same result inside only 'System' namespace. Isn't it?
>
> I mean what you can use unqualified ids and usings in most cases
>
> without any errors from the compilator _when you use only standard
>
> facilities_.

True, but same with C++. If you are only using std namespace, you
have no problems. It's only when you bring multiple namespaces into
the same scope. e.g. System + XNA, or std + boost.

<snip code>

> Is it quite readable or your eyes are seeing only 'slib' and '::'? Is _it_
> improving of 'code readness'? And you are offering C++ beginners to use such
> coding style. It is good style, but I'm absolutely sure what beginners (even
> with C# or Java experience) say you something ugly and then return to C# or
> Java. :)

While I'm used to seeing the former, I agree it's more readable
without the namespace qualifications.

--Michael Fawcett


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