Home  >  Article  >  Backend Development  >  What new C 11 features does Visual Studio 2012 offer compared to Visual Studio 2010?

What new C 11 features does Visual Studio 2012 offer compared to Visual Studio 2010?

Susan Sarandon
Susan SarandonOriginal
2024-10-31 07:48:02744browse

What new C  11 features does Visual Studio 2012 offer compared to Visual Studio 2010?

C 11 Features in Visual Studio 2012

With the preview release of Visual Studio 2012 (the next version after VS2010), Many developers are eager to know about its support for the C 11 language standard.

Visual Studio 2010 already provides some early support for C 11. Compared with Visual Studio 2010, the following features are new in Visual Studio 2012:

  • rvalue reference version upgraded to 2.1
  • lambda expression version upgraded to 1.1
  • decltype version upgraded to 1.1 (not yet available in developer preview)
  • Alignment enhancements, but not yet complete
  • Perfect strongly typed enumerations
  • forward ready Declared enums
  • Standard layout and plain types
  • Atomic types
  • Strong comparisons and swaps
  • Two-way memory barrier
  • Data dependencies Sexual sorting
  • Range-based for loop

In early November 2012, Microsoft announced the Visual C Compiler November 2012 CTP, adding more C 11 features to Visual Studio 2012:

  • Uniform initialization
  • Initializer list
  • Variable parameter template
  • Function template default parameters
  • Delegated constructor
  • Explicit conversion operator
  • Raw string

The above is the detailed content of What new C 11 features does Visual Studio 2012 offer compared to Visual Studio 2010?. 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