Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is vs2012 cl.exe equivalent to gcc -std=c++11?

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.

like image 899
xyz Avatar asked Oct 15 '13 01:10

xyz


1 Answers

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.

like image 117
2 revs Avatar answered Sep 26 '22 08:09

2 revs