Boost logo

Boost-Build :

Subject: [Boost-build] c++-std-version
From: Alexander Arhipenko (arhipjan_at_[hidden])
Date: 2012-10-22 04:54:37


I would like to request addition of the c++-std-version feature to
builtin module and also correspondent compiler modules.

Do you think it's reasonable?

Now feature will have 2 values: 98 and 11.
When <c++-std-version>11 is set for pre-C++11 compiler -
it should be simply ignored.

We are building our source code base for gcc 4.1.2 and gcc 4.4.6.
We would like to use c++11 features when possible.
"When possible" will be detected using preprocessor,
what we need is to pass '-std=c++0x' conditionally -
when gcc version is equal or greater than 4.3.
The toolset-agnostic approach could be:

   project /foo
      : requirements


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at