Subject: Re: [Boost-build] c++-std-version
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-10-22 13:00:25
Le 22/10/12 10:54, Alexander Arhipenko a écrit :
> 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
people use to configure their toolset as follows
using gcc : 4.7.1-c++98 : /usr/gcc-4.7.1/bin/g++-4.7 ;
using gcc : 4.7.1-c++11 : /usr/gcc-4.7.1/bin/g++-4.7 :
I agree however that it could be useful the build system adds a new
feature that can be tested on the jamfiles to make some build conditional.
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