|
Boost-Build : |
Subject: Re: [Boost-build] generators for creating HPP files?
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2010-05-26 13:08:25
Am 26.05.2010 19:02, schrieb Steven Watanabe:
> AMDG
>
> Oliver Kowalke wrote:
>> Am 26.05.2010 14:37, schrieb Steven Watanabe:
>>> c.hpp:
>>> #ifdef __GNUC__
>>> #include <boost/my_lib/a.tmpl>
>>> #else
>>> #include <boost/my_lib/b.tmpl>
>>> #endif
>>
>> I think this is a bad idea because c.hpp can evaluate to include
>> a.tmpl and the logic in Jamfile.v2 concludes to use b.tmpl inside c.cpp!
>
> But you can avoid that situation, since you control both the headers
> and the Jamfile. Anything that prevents different build configurations
> from coexisting is totally unacceptable, IMHO.
I've solved it by using pimpl idiom.
thx, Oliver
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk