Boost logo

Boost :

Subject: Re: [boost] [cmake] Minimum viable cmakeification for Boost
From: Peter Dimov (lists_at_[hidden])
Date: 2017-06-21 21:56:30


Vinnie Falco wrote:
> For reference, here is the ONE .cpp file which makes Boost.System not
> header-only:
> https://github.com/boostorg/system/blob/develop/src/error_code.cpp#L14
>
> and here's that one header it includes
> https://github.com/boostorg/system/blob/develop/include/boost/system/detail/error_code.ipp#L12
>
> We make people link against Boost.System just for that?

No, for that:

https://github.com/boostorg/system/blob/master/include/boost/system/detail/error_code.ipp#L24

Or, in general, we use separate compilation to isolate the users of the
library from the header dependencies required to build (but not use) the
library.

> Boost.System should be header-only by default.

In this case, after the recent fixes, maybe.


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