Sponsored By

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.

C++ status - a quick summary

Status of the implementation of the C++11 language standard in four different compilers.

Bartlomiej Filipek, Blogger

January 6, 2014

9 Min Read

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.

Chart

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.

c++11 compiler conformance graph

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%

Data

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

3,1

auto v1.0

4,4

12,0

10,0

2,9

C99 preprocessor

4,3

11,1

 

2,9

constexpr

4,6

14,0

12,1

3,1

decltype v1.0

4,3

12,0

10,0

2,9

decltype v1.1

4,8

12,0

12,0

2,9

Defaulted And Deleted Functions

4,4

12,0

12,0

3,0

Delegating Constructors

4,7

14,0

12,0

3,0

Explicit conversion operators

4,5

13,0

12,0

3,0

Extended friend Declarations

4,7

11,0

10,0

2,9

extern template

3,3

9,0

6,0

2,9

Forward declarations for enums

4,6

14,0

11,0

3,1

Inheriting Constructors

4,8

 

12,1

3,3

Initializer Lists

4,4

13,0

12,0

3,1

Lambda v1.0

4,5

12,0

10,0

3,1

Lambda v1.1

4,5

12,0

11,0

3,1

Local and Unnamed Types as Template Arguments

4,5

12,0

8,0

2,9

long long

4,3

11,0

7,1

2,9

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

2,9

nullptr

4,6

12,1

10,0

2,9

Unicode String Literals

4,4

11,0

 

3,0

Raw String Literals

4,5

14,0

12,0

3,0

User-defined Literals

4,7

 

 

3,1

Right Angle Brackets

4,3

11,0

8,0

2,9

R-Value References, std::move v2.1

4,5

14,0

11,0

3,0

R-Value References, std::move v3.0

4,5

14,0

 

3,0

static_assert

4,3

11,0

10,0

2,9

Strongly-typed enums

4,4

14,0

11,0

2,9

Template aliases

4,7

12,1

12,0

3,0

Thread-Local Storage

4,8

 

 

3,3

Unrestricted Unions

4,6

 

 

3,0

Built-in Type Traits

4,3

10,0

8,0

3,0

Variadic Templates v0.9

4,3

12,1

12,0

2,9

Variadic Templates v1.0

4,4

 

12,0

2,9

Range-based for-loop

4,6

13,0

11,0

3,0

override and final v1.0

4,7

14,0

11,0

2,9

Attributes

4,8

12,1

 

3,3

ref-qualifiers

4,81

14,0

12,1

2,9

Non-static data member initializers

4,7

14,0

12,0

3,0

Extended sizeof

4,4

 

12,1

3,1

Allowing move constructors to throw [noexcept]

4,6

14,0

12,1

3,0

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

Resources

 

Orginally posted at bfilipek.com

Read more about:

Featured Blogs
Daily news, dev blogs, and stories from Game Developer straight to your inbox

You May Also Like