A simple way is to write:
-std=c++11
in the "Other Options" section of the compiler flags. You can do this on the basis of each project (Project → Build Options) and / or set it as the default parameter in the "Settings → Compilers" section.
For some projects, -std=gnu++11 may be required, which is similar to C ++ 11 but has some GNU extensions.
If you are using g ++ 4.9, you can use -std=c++14 or -std=gnu++14 .
MM May 26 '15 at 5:18 2015-05-26 05:18
source share