Boost logo

Boost :

Subject: Re: [boost] [thread] Can't use boost/thread/mutex.hpp without boost_system
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-01-21 18:23:33


On 01/21/2012 11:29 PM, Vicente J. Botet Escriba wrote:

> Ihave found that a little patch to Boost.System could make it
> header-only. It seems that Beman has already tried it, but there are
> some errors. Here it is the patch
>
> device3-1:trunk viboes$ svn diff boost/system libs/system
> Index: boost/system/error_code.hpp
> ===================================================================
> --- boost/system/error_code.hpp (revision 76354)
> +++ boost/system/error_code.hpp (working copy)
> @@ -504,7 +504,7 @@
>
> #include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
>
> -# ifdef BOOST_ERROR_CODE_HEADER_ONLY
> +# ifdef BOOST_SYSTEM_INLINED
> # include <boost/../libs/system/src/error_code.cpp>
> # endif

Doesn't that still enable autolink with MSVC?


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