Visual Studio 2012中的C ++ 11功能 [英] C++11 features in Visual Studio 2012
问题描述
Visual Studio 2012(VS2010之后的下一个版本)的预览版本为现在可用。
A preview version of Visual Studio 2012 (the next version after VS2010) is now available.
有谁知道它支持什么新的C ++ 11功能? (我目前无法试用)。
Does anyone know what new C++11 features it supports? (I'm not in a position to try it out at the moment).
推荐答案
值得注意的是Visual Studio 2010已经有相当多的早期C ++ 11支持。因此,为了总结已经链接到其他答案,这里是什么是Visual Studio 11中不是Visual Studio 2010的一部分是新的:
It's worth noting that Visual Studio 2010 already had quite a bit of early C++11 support. So to summarize what is already linked to in other answers, here is what is new in Visual Studio 11 that was not part of Visual Studio 2010:
- rvalue引用来自2.0的版本2.1
- lambdas以从1.0版开始版本1.1 。
- 声明版本1.1 from 1.0 (在开发人员预览中尚未提供)
- 改进但仍不完整,对齐
- 完成强类型枚举
- 转发已声明的枚举
- 标准布局和琐碎类型
- Atomics
- 强烈的比较和交流
- 双向围栏
- 数据依赖顺序
- 基于范围的for循环
- rvalue references to version 2.1 from 2.0
- lambdas to version 1.1 from 1.0.
- decltype to version 1.1 from 1.0(not yet available in developer preview)
- Improved, but still incomplete, Alignment
- completed strongly-typed enums
- forward declared enums
- Standard layout and trivial types
- Atomics
- Strong compare and exchange
- Bi-directional fences
- Data-dependency ordering
- Range-based for loop
2012年11月初,Microsoft 宣布 Visual C ++编译器2012年11月CTP ,它为Visual Studio 2012添加了更多的C ++ 11功能:
In early November 2012, Microsoft announced the Visual C++ Compiler November 2012 CTP, which adds more C++11 functionality to Visual Studio 2012:
- uniform initialization
- initializer lists
- variadic templates
- function template default arguments
- delegating constructors
- explicit conversion operators
- raw strings
这篇关于Visual Studio 2012中的C ++ 11功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!