c++11 with compiler support __c++

Source: Internet
Author: User
Tags visual studio 2002 visual studio 2010

_msc_ver is a built-in macro for the MSVC compiler that defines the compiler's version, and the _msc_ver value corresponds to the version

Msvc++ 11.0 _msc_ver = 1700 (Visual Studio 2012)
msvc++ 10.0 _msc_ver = 1600 (Visual Studio 2010)
Msvc++ 9.0 _msc_ver = 1500 (Visual Studio 2008)
msvc++ 8.0 _msc_ver = 1400 (Visual Studio 2005)
Msvc++ 7.1 _msc_ver = 1310 (Visual Studio 2003)
msvc++ 7.0 _msc_ver = 1300 (Visual Studio 2002)
Msvc++ 6.0 _msc_ver = 1200
msvc++ 5.0 _msc_ver = 1100

Year C + + standard commonly known as remarks
ISO/IEC 14882:2011 c++11 third C + + standard
Draft documents of the 2007 ISO/IEC TR 19768:2007 C++TR1 Standardization Committee
2003 ISO/IEC 14882:2003 C++03 second C + + standard
1998 ISO/IEC 14882:1998 c++98 first C + + standard

C99, is the C language standard.

C++11, formerly known as C++0X, ISO/IEC 14,882:2011, is the official standard for the current C + + programming language. It replaces the second edition of standard ISO/IEC 14,882:2003 (the first edition of ISO/IEC 14,882:1998 is publicly available in 1998, and the second edition is updated in 2003, which is generally referred to as c++98 and c++03, the difference being very small). The new standard contains the new functionality of the core language, and extends the C + + standard library, incorporating most of the C + + technical 1 library (except for the special functions of mathematics).

"GCC is replacing clang as the best compiler for C++11 support, and Visual Studio has also made significant improvements in support for C++11 features, especially for variadic templates, initializer lists, and raw Literals's support. Of course, those supported by full support, which are no bugs, are unknown and need to be experienced by the developers themselves. "There will be no compiler's full support for c++11, support for most of them, even c++98 no compilers are fully supported."

Reference:

Http://www.csdn.net/article/2013-03-18/2814528-c11-compiler-support-shootout-visual-studio-gcc-clang-intel

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.