Boost logo

Boost :

From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-12-04 10:55:28


David Abrahams wrote:
> on Mon Dec 03 2007, Andrey Semashev <andysem-AT-mail.ru> wrote:
>
>> Maybe the library should reside in its own sub-namespace and then this
>> namespace should be imported into boost:: with using directive. This
>> import would be optional, depending on some macro, and would be declared
>> deprecated.
>
> More simply, boost/thread.hpp could do
>
> #include "boost/thread/whatever.hpp"
> #include "boost/thread/whateverelse.hpp"
> namespace boost
> {
> using namespace threads;
> }
>
>

Yep, or even better:

    #ifndef BOOST_THREAD_NO_IMPORTS
    namespace boost
    {
        using namespace threads;
    }
    #endif


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