Boost logo

Boost :

Subject: Re: [boost] [config][predef] Is it OK for boost.config to depend on boost.predef?
From: John Maddock (boost.regex_at_[hidden])
Date: 2014-05-29 04:20:28


>> 4) #include <boost/predef/platform.h> in the files that actually use the
>> desired macros.

That seems like the correct solution to me: a file should include the
headers documented to define the things it needs and not rely on
implicit includes (even though through laziness we do that all the time!).

> 5)
> #include <boost/predef/platform/windows_desktop.h>
> #include <boost/predef/platform/windows_runtime.h>
>
>
>> If I had been writing the code myself, I probably would have selected
>> option (4). What do others think?
>>
>
> I would go with option (5) :-) Or a variation of that as needed.
>
> Note/Warning, I was not planning on merging Predef develop to master until
> after the next release (as the docs need to be updated and quickbook is
> giving me problems ATM). So whatever change that depends on those added
> defs will need to be postponed until after the next release.

That seems like a good reason not to create a dependency to predef, at
least not yet, I'd like to be able to do one more merge of
develop->master in Boost.Config before the next release.

Cheers, John.


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