I want to use GCC and Clang in C++17 mode by adding -std=c++17.
(This is to maximise the use of constexpr).
There isn't a C++17 option in the Build Options, Compiler options, only C++14
When I add to Other compiler options and Append target options to project options, I get a compile line
g++.exe -Wall -fexceptions -g -std=c++17 -O3 -Wall -std=c++14 -II:\boost_1_61_0_b1 -c J:\Cpp\hellos\hello_boost\hello_boost.cpp -o obj\Debug\hello_boost.o
I expected the added compiler option to be last, but the default? -std=c++14 is last and so overrides and I'm not getting the option I expect.
__cplusplus=201402L
GCC 5.3.0
Is this failure to append as I, at least, expect a 'feature' or a bug?
http://forums.codeblocks.org/index.php/topic,20527.msg139644.html#msg139644suggests that I might have to edit the options_common_warnings.xml
but this sounds a bit scary
or has anyone done this already?