I'm working with eclipse and I can choose the language standard and/or other dialect flags. When I want to work with the latest language standard, do I need to declare as shown in the image or leave the language standard blank and just define c++11, or the other way around, just define the language standard c++1y and leave the flags empty?
-
language flags depend on your compiler. So find out your compiler version - then go to its documentation and find which -std values are supportd by this version and decide how you'll be able to select specific standard– Artemy VysotskyCommented Sep 17, 2017 at 13:38
-
C++11 isn't exactly the latest standard, so I wouldn't select that.– Bo PerssonCommented Sep 17, 2017 at 13:39
-
Eclipse isn't a compiler. What does your compiler support?– user2672107Commented Sep 17, 2017 at 13:50
Add a comment
|
1 Answer
According to Options Controlling C Dialect -std=c++1y
is just a deprecated alias to -std=c++14
, not to -std=c++11
. Even though Eclipse offered a proper alternative option -std=c++0x
, it is also deprecated, so you better leave language standard blank and set -std=c++11
among flags.