Home  >  Article  >  Backend Development  >  What C 11 Features are Supported in Visual Studio 2012?

What C 11 Features are Supported in Visual Studio 2012?

Linda Hamilton
Linda HamiltonOriginal
2024-11-03 03:40:02887browse

What C  11 Features are Supported in Visual Studio 2012?

C 11 Features in Visual Studio 2012

With the recent release of a preview version of Visual Studio 2012, many developers are curious about the support for C 11 features. While Visual Studio 2010 already provided partial C 11 support, the new version offers expanded functionality.

New C 11 Features in Visual Studio 2012:

  • Rvalue References: Updated from version 2.0 to 2.1.
  • Lambdas: Enhanced from version 1.0 to 1.1.
  • Decltype: Version 1.1 (not yet available in developer preview).
  • Improved Alignment: Still incomplete.
  • Strongly-Typed Enums: Now completed.
  • Forward Declared Enums: Now supported.
  • Standard Layout and Trivial Types: Now supported.
  • Atomics: Available.
  • Strong Compare and Exchange: Implemented.
  • Bi-directional Fences: Supported.
  • Data-dependency Ordering: Available.
  • Range-based For Loop: Now available.

Additional C 11 Features Added with Visual C Compiler November 2012 CTP:

  • Uniform Initialization
  • Initializer Lists
  • Variadic Templates
  • Function Template Default Arguments
  • Delegating Constructors
  • Explicit Conversion Operators
  • Raw Strings

The above is the detailed content of What C 11 Features are Supported in Visual Studio 2012?. 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