|
Boost Testing : |
Subject: [Boost-testing] BJam and options for compiler versions >= x
From: Raffi Enficiaud (raffi.enficiaud_at_[hidden])
Date: 2015-03-25 10:58:10
Hi,
I have a test that should compile the code with C++11 options. For eg.
GCC, I have a rule like this, which I do not like
<toolset>gcc-4.4:<cxxflags>-std=c++0x
<toolset>gcc-4.5:<cxxflags>-std=c++0x
<toolset>gcc-4.6:<cxxflags>-std=c++0x
<toolset>gcc-4.7:<cxxflags>-std=c++11
I would like to know:
- if there is a better way to do this
- if it is possible to set the option "-std=c++11" for compilers with
versions >= 4.7
Thanks,
Raffi