Subject: Re: [boost] Lighweight header-only version of Boost.Filesystem?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-08-22 09:17:52


On 21/08/2011 00:28, Cory Nelson wrote:

> Here's something easy: new includes that have the implementation.
> Library authors don't need to worry about ODR issues -- let the user
> include it in only a single source file. I.e. my project would have a
> boost.cpp that consists of:
>
> #include<boost/filesystem.cpp>
> #include<boost/system.cpp>

There are many reasons why that doesn't work.

- The files are not in the include path of a typical Boost installation
- The functions are not inline, and are even usually dllexport
- Source files have no header guards, don't need to care about masking
details, and can even use "using namespace".