New C 11 Features in Visual Studio 2012
With the release of Visual Studio 2012, developers have gained access to a multitude of C 11 features, enabling them to enhance their coding experience significantly.
Improved C 11 Support in Visual Studio 2012
Visual Studio 2010 had already provided support for several C 11 features. However, Visual Studio 2012 introduces a range of additional enhancements:
-
Updated Rvalue References (Version 2.1): The previous version (2.0) has been upgraded.
-
Lambdas (Version 1.1): Enhanced from version 1.0 to 1.1.
-
Decltype (Version 1.1): Now at version 1.1 (not yet available in the developer preview).
Additional New Features
Beyond the improvements mentioned above, Visual Studio 2012 incorporates several additional C 11 features:
-
Alignment Enhancements: While not yet complete, Alignment has been improved.
-
Strongly-Typed Enums: These are now completed.
-
Forward Declared Enums: These are now supported.
-
Standard Layout and Trivial Types: These have been added.
-
Atomics: This feature has been implemented.
-
Strong Compare and Exchange: This is now supported.
-
Bi-Directional Fences: These have been introduced.
-
Data-Dependency Ordering: This is now supported.
Additional Enhancements in the November 2012 CTP
The Visual C Compiler November 2012 CTP brought even more C 11 functionality to Visual Studio 2012:
-
Uniform Initialization: This feature has been added.
-
Initializer Lists: These are now supported.
-
Variadic Templates: This feature has been introduced.
-
Function Template Default Arguments: These are now available.
-
Delegating Constructors: This feature has been implemented.
-
Explicit Conversion Operators: These are now supported.
-
Raw Strings: This feature has been introduced.
The above is the detailed content of What New C 11 Features Does Visual Studio 2012 Offer?. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn