Is it possible to enable C++14 in Netbeans for both the IDE and the compiler ?
- I can tell the IDE to use C++11 by setting
C++11
in the C++ Standard option of the C++ compiler category. - I can tell the compiler to use C++14 by adding
-std=c++14
in the Additional Options of the same category.
I see two problems :
- If the IDE is not C++14 compliant, the code assistance could be wrong for uses of compliant C++14 that do not comply with C++11 standard.
- The compiler is given both
-std=c++11
and-std=c++14
flags. By my tests, I can see that the relevant one is the last one on the command line. Sadly, the IDE puts the Additional Options arguments before the C++ Standard argument, on the compiler command line.
I'm using Netbeans 8.0.2. A consistent solution, if any, avoiding to upgrade to a newer version is preferred. I'm using gcc 4.9.2.
As far as I understand their answers, these related questions do not answer mine :