Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable c++11 features in vs2013

Is there a way to disable c++11 features when writing code in vs 2013 , I want my code to also compile on older compiles like vs2008.

I tired to change via: project->properties->general->platform tool-set, and change "Visual Studio 2013 (v120)" to something older , but this is the only thing i have in the drop down menu there .

like image 500
user3066442 Avatar asked Apr 30 '14 11:04

user3066442


1 Answers

Visual Studio 2015 Update 3 introduces two new switches (/std:c++14 and /std:c++latest) to give you control over the version of the C++ programming language you want to use in your projects. In this update, if you specify a language version that isn’t any of those, the compiler will ignore the switch (with a warning) and default to C++14.

see https://blogs.msdn.microsoft.com/vcblog/2016/06/07/standards-version-switches-in-the-compiler/

like image 101
Claus Klein Avatar answered Oct 21 '22 07:10

Claus Klein