Is C ++ 11 supported?

For those who want their C ++ code to be portable across different C ++ compilers, it's time to start using C ++ 11, or it will be a while until the new standard is supported by all major compilers (VC, GCC, CLang, Intel)?

In other words, what is the status of C ++ 11 support among the main compilers?

+7
source share
3 answers

Clang (updated regularly):

http://clang.llvm.org/cxx_status.html

GCC 4.5 to 4.7 (updated regularly):

http://gcc.gnu.org/projects/cxx0x.html

Visual C ++ 10 and 11 (a bit old, but the newest I found):

http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx

+6
source

The latest versions of all major compilers support some of the features of C ++ 11. But no compiler yet has full support, and if you want your code to be portable, you should also consider that not everyone uses the latest versions of their compiler.

So the answer is "it depends."

There are a number of functions supported by all major compilers. ( auto , rvalue refs and lambdas, for example, are widely available).

There are also many features that are available to some, but not all compilers.

The links posted by @Kos should give you an idea of ​​where each compiler is located.

If you can / should start using C ++ 11, it is up to you.

+3
source

In addition to these sites: A comparison of various compilers containing the exact version with which the C ++ 11 function is supported on compilers is here:

http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport

Listed Compilers:

HP aCC, EDG eccp, GCC, Intel C ++, MSVC, IBM XLC ++, Sun / Oracle C ++, C ++ Builder 2009/10, Digital Mars C ++, Clang

+2
source

All Articles