在 VS2012 上禁用 C++11 功能 [英] Disabling C++11 features on VS2012

查看:32
本文介绍了在 VS2012 上禁用 C++11 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 VS2012 上禁用 C++11 功能?我的代码还没有准备好,我不想引入进一步的混乱

Is it possible to disable C++11 features on VS2012? My code isn't ready for that yet and I'd like not to introduce further confusion

推荐答案

从 Visual C++ 2015 Update 3 开始,现在可以为语言行为指定语言版本(显然它不仅仅影响一致性检查):

As of Visual C++ 2015 Update 3, it is now possible to specify a language version for language behavior (apparently it doesn't affect just conformance checking):

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

不幸的是,唯一的选项是C++14"(不准确,它包括以前发布的后 C++14 特性)和C++最新"(C++14 加上 C++17 的部分实现和提案,但不是实验性"功能)

Unfortunately the only options are "C++14" (not exact, it includes post-C++14 features which had previously shipped) and "C++ Latest" (C++14 plus partial implementation of C++17 and proposals, but not "experimental" features)

对应的命令行开关是:

  • /std:c++14
  • /std:c++latest

这篇关于在 VS2012 上禁用 C++11 功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆