
22 Aug
2011
22 Aug
'11
1:17 p.m.
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".