
Beman Dawes <bdawes@acm.org> wrote:
Header-only libraries can be useful, but not if that means they have to include system headers. That is a disqualifier for portable code - too many really bad experiences with macros in system headers.
Boost.Threads already does this so at least we'll be no worse off ;-) matt. __________________________ e.g. from thread.hpp #ifndef BOOST_THREAD_WEK070601_HPP #define BOOST_THREAD_WEK070601_HPP #include <boost/thread/detail/config.hpp> #include <boost/utility.hpp> #include <boost/function.hpp> #include <boost/thread/mutex.hpp> #include <list> #include <memory> #if defined(BOOST_HAS_PTHREADS) # include <pthread.h> # include <boost/thread/condition.hpp> #elif defined(BOOST_HAS_MPTASKS) # include <Multiprocessing.h> #endif