Boost logo

Boost :

Subject: Re: [boost] [C++11] Is conditional code allowed?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-02-02 06:17:57

On 02/02/14 01:35, Fletcher, John P wrote:
> I am working on bugs in boost phoenix.
> I have found some problems eg. #7624 which run fine with C++11 with either Clang 3.4 or gcc 4.8.2.
> I also have a patch which has been suggested for bug #8704 which uses C++11.
> Is there a way to incorporate C++11 only code into tests or the actual headers.
> If so, is there an example of how to do it in Boost?

Boost.Config defines many macros to test whether some C++03 or C++11
features are available.
Try to use those as much as possible instead of doing your own compiler
detection logic.


Boost list run by bdawes at, gregod at, cpdaniel at, john at