Subject: Re: [boost] Library namespace guidelines
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-05 09:44:31
Neil Groves wrote:
> I have read both the "Library Requirments and Guidelines" and specifically
> examined the "Boost Header Policy" and the section on naming consistency but
> have yet to understand how I should choose to use namespaces for the next
> version of Boost.Range, that incorporates the accepted Boost.RangeEx
> It feels indecent and naughty (in a bad way!) to be putting the library into
> the top-level boost namespace. More importantly I am concerned that general
> functions such as "find" will clash when combined with other boost libraries
> both now and in the future.
> Would the ideal scenario for new libraries be to have a library related
> namespace under boost in a manner akin to Boost.Filesystem?
Yes. Most libraries have this.
> Is there already a strategy that is well-known that I am ignorant of?
> Is there an existing strategy to migrate libraries that pollute the
> top-level boost namespace that maximises backward compatibility?
Using declarations can help.
> Any assistance with this matter would be greatly appreciated.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk