
Please , please please no windows.h ;) Just spent an unhappy day or two again last week fighting against it. I would much prefer to link against something and anything that needed it was compiler firewalled in a cpp if possible. cheers Martin Matt Hurd wrote:
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
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/90 - Release Date: 5/09/2005