|
Boost : |
From: Matt Hurd (matt.hurd_at_[hidden])
Date: 2005-09-05 15:39:47
> Beman Dawes <bdawes_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk