Is there a command line option I can pass to VS2012 or VS2013 cl.exe to specify if I want to use C++11 or C++98 syntax? Like GCC's -std=c++11 option.
Asked
Active
Viewed 4,242 times
12
-
4Not to my knowledge. VS always recognizes C++11 syntax; well, the parts it supports, at least. – Igor Tandetnik Oct 15 '13 at 03:37
-
Thanks for the confirmation. – xyz Oct 15 '13 at 04:00
-
@IgorTandetnik you might want to post that as an answer since it seems to be what the user was looking for.. – Lizz Oct 15 '13 at 04:56
-
possible duplicate of [How to enable C++0x features in Visual studio? \[Initializer Lists support\]](http://stackoverflow.com/questions/5121529/how-to-enable-c0x-features-in-visual-studio-initializer-lists-support) – TemplateRex Oct 15 '13 at 10:57
1 Answers
1
Quoting Igor Tandetnik from the comments:
Not to my knowledge. VS always recognizes C++11 syntax; well, the parts it supports, at least.
Posted answer as community wiki so that this question no longer remains unanswered.

Jay Bosamiya
- 3,011
- 2
- 14
- 33