Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-12-04 10:08:18


on Mon Dec 03 2007, "Peter Dimov" <pdimov-AT-pdimov.com> wrote:

> JOAQUIN LOPEZ MU?Z:
>
>>> namespace boost { namespace foobar
> ...
>
>> This is not the case at least for one Boost library,
>> namely Boost.Tuple, whose associated namespace is
>> boost::tuples, with a postfixed 's'.
>
> It's also not the case for std::tuple, whose namespace is std, without a
> subnamespace. :-)

How is that relevant? std::tuple is outside our purview.

> One benefit of having everything in boost (or, more precisely,
> everything that is supposed to be proposed for inclusion into the
> standard library) is that name collisions become apparent earlier.

I don't see how such collisions will be revealed just by virtue of the
names occupying the same namespace, and it seems premature to
constrain two unrelated libraries to use entirely different names just
because they might one day be standardized together. The committee
has to make all kinds of small adjustments when libraries are
standardized anyway. Resolving name collisions then is not such a big
deal, I think.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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