
4 Dec
2007
4 Dec
'07
3:55 p.m.
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