Boost logo

Boost :

From: Andrew Finkenstadt (pbrane_at_[hidden])
Date: 2008-04-29 09:49:56


This would be of great utility to me in our use of boost, and would save at
least a gigabyte of disk space in each branch of our projects that use boost
features, per version of boost, at the expense of one-time compilation.

If you need a test site, I'd be happy to help out.

andy

On Tue, Apr 29, 2008 at 5:54 AM, Ulrich Eckhardt <doomster_at_[hidden]> wrote:

> Hi!
>
> I have in the past sometimes[1] described another alternative way to
> linking
> and quite a few people also seemed interested. Basically, it works by
> including the whole library code into the application that links to it.
> However, as opposed to a header-only library, the code is only included
> once
> in a translation unit of the linking program instead of inline via the
> header
> files.
>
>
> Example:
> ---------
>
> // lib.hpp:
> void foo();
>
> // lib.cpp:
> void foo() {
> frobnicate(bar);
> }
>
> // program1.cpp:
> #include <lib.hpp>
>
> // program2.cpp:
> #include <lib.hpp>
>
> // program_main.cpp:
> #include <lib.hpp>
> #include <lib.cpp>
>
> int main() {
> foo();
> }
>
>


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