Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2020-03-07 14:23:51

On Sat, Mar 7, 2020 at 5:37 AM Steven Watanabe via Boost
<boost_at_[hidden]> wrote:
> If you make a compiled library that contains exactly the same
> code that you would write for a header only library, "replace
> the native build system" becomes "glob the sources and add
> them to your project"

Actually, it is even easier than that. I provide a header file called
"src.hpp" which you can just include in any one of your translation
units, as a third way to consume the library in a non-header-only


This is exactly how the linkable library is built, a TU called src.cpp
just includes this header:


Going this route gives you the compilation performance of a linkable
library, without the hassle of writing a build script to emit a new
library (it is just another TU in your already-existing build script).

The library_template project also supports this:



Boost list run by bdawes at, gregod at, cpdaniel at, john at