Trending
Opinion: How will Project 2025 impact game developers?
The Heritage Foundation's manifesto for the possible next administration could do great harm to many, including large portions of the game development community.
Featured Blog | This community-written post highlights the best of what the game industry has to offer. Read more like it on the Game Developer Blogs or learn how to Submit Your Own Blog Post
Status of the implementation of the C++11 language standard in four different compilers.
C++11 conformance
GCC 4.81 - 100%
Clang 3.3 - 100%
Intel 14.0 - 84%
Visual C++ 2013 - 66%
Another year is almost over so it is a good time to check what is going on with C++. This time more stats and real data.
This chart provides a general view on C++11 conformance. Percentage comes from counting implemented features in a given compiler according to the list of 45 C++11 language features. Please note that the view may be a bit imperfect or unfair. One language feature can have more "value"/importance than some other. For instance "extern template" vs "constxpr". Or "long long" vs "delegating constructors". This would require to put partial factors for each feature. Additionally some features have several versions (like move orlambda) - only the latest version should be counted.
Compiler | Conformance |
---|---|
GCC 4.6 | 73% |
GCC 4.7 | 87% |
GCC 4.81 | 100% |
Clang 2.9 | 44% |
Clang 3.0 | 76% |
Clang 3.1 | 93% |
Clang 3.2 | 93% |
Clang 3.3 | 100% |
Intel C++ 12 | 36% |
Intel C++ 13 | 53% |
Intel C++ 14 | 82% |
MCVC 10.0 | 27% |
MCVC 11.0 | 42% |
MCVC 12.0 | 64% |
MCVC 12.1 (NOV CTP) | 80% |
I used wiki.apache.org/stdcxx as a base for my work. I've upgraded it and cleaned up a bit. Additionally compilers: HP, EDGE, IBM, Sun/Oracle, C++ Builder (front-end is based on Clang 3.1 now) and Digital Mars were removed.
C++11 language feature | Proposal | |||
---|---|---|---|---|
Alignment | 4,8 | 12,1 | 3,0 | |
Atomic operations | 4,4 | 13,0 | 11,0 | |
auto v1.0 | 4,4 | 12,0 | 10,0 | |
C99 preprocessor | 4,3 | 11,1 | 2,9 | |
constexpr | 4,6 | 14,0 | 12,1 | |
decltype v1.0 | 4,3 | 12,0 | 10,0 | |
decltype v1.1 | 4,8 | 12,0 | 12,0 | |
Defaulted And Deleted Functions | 4,4 | 12,0 | 12,0 | |
Delegating Constructors | 4,7 | 14,0 | 12,0 | |
Explicit conversion operators | 4,5 | 13,0 | 12,0 | |
Extended friend Declarations | 4,7 | 11,0 | 10,0 | |
extern template | 3,3 | 9,0 | 6,0 | |
Forward declarations for enums | 4,6 | 14,0 | 11,0 | |
Inheriting Constructors | 4,8 | 12,1 | 3,3 | |
Initializer Lists | 4,4 | 13,0 | 12,0 | |
Lambda v1.0 | 4,5 | 12,0 | 10,0 | |
Lambda v1.1 | 4,5 | 12,0 | 11,0 | |
Local and Unnamed Types as Template Arguments | 4,5 | 12,0 | 8,0 | |
long long | 4,3 | 11,0 | 7,1 | |
Namespace Association | 4,4 | 14,0 | 2,9 | |
New character types | 4,4 | 14,0 | 2,9 | |
New function declaration syntax for deduced return types | 4,4 | 12,0 | 10,0 | |
nullptr | 4,6 | 12,1 | 10,0 | |
Unicode String Literals | 4,4 | 11,0 | 3,0 | |
Raw String Literals | 4,5 | 14,0 | 12,0 | |
User-defined Literals | 4,7 | 3,1 | ||
Right Angle Brackets | 4,3 | 11,0 | 8,0 | |
R-Value References, std::move v2.1 | 4,5 | 14,0 | 11,0 | |
R-Value References, std::move v3.0 | 4,5 | 14,0 | 3,0 | |
static_assert | 4,3 | 11,0 | 10,0 | |
Strongly-typed enums | 4,4 | 14,0 | 11,0 | |
Template aliases | 4,7 | 12,1 | 12,0 | |
Thread-Local Storage | 4,8 | 3,3 | ||
Unrestricted Unions | 4,6 | 3,0 | ||
Built-in Type Traits | 4,3 | 10,0 | 8,0 | |
Variadic Templates v0.9 | 4,3 | 12,1 | 12,0 | |
Variadic Templates v1.0 | 4,4 | 12,0 | 2,9 | |
Range-based for-loop | 4,6 | 13,0 | 11,0 | |
override and final v1.0 | 4,7 | 14,0 | 11,0 | |
Attributes | 4,8 | 12,1 | 3,3 | |
ref-qualifiers | 4,81 | 14,0 | 12,1 | |
Non-static data member initializers | 4,7 | 14,0 | 12,0 | |
Extended sizeof | 4,4 | 12,1 | 3,1 | |
Allowing move constructors to throw [noexcept] | 4,6 | 14,0 | 12,1 | |
Dynamic initialization and destruction with concurrency (Magic statics) | 4,3 | 12,1 | 2,9 |
Remarks
Version 12.1 of MSVC means - November CTP, but this is not "official" of course.
long long support for VS: probably from the version 7.1, but before that it existed as a __int64
Orginally posted at bfilipek.com
Read more about:
Featured BlogsYou May Also Like