C++11 Compiler: Closest to the standard and how cl

2019-01-13 05:10发布

问题:

I'm interested in learning C++ more thoroughly now that C++11 is apparently ratified. What compiler currently implements the closest thing available to full C++11 support? How close is said compiler to full support? Are there still major features missing or just language lawyer minutiae?

回答1:

There's a support matrix on the Apache wiki.



回答2:

I think the one Scott Meyers maintains on his homepage is pretty good:

http://www.aristeia.com/C++0x/C++0xFeatureAvailability.htm



回答3:

The llvm C++ compiler "clang" has partial C++11 support; you can see its current state at http://clang.llvm.org/cxx_status.html.



回答4:

There's also GCC C++0x (or C++11) status page : http://gcc.gnu.org/projects/cxx0x.html



回答5:

IBM's xlC++ compiler has a basic C++11 feature support page.



回答6:

To anyone reading this now, as of Jan 2013 Clang 3.2 is probably the most complete C++11 compiler, although the latest dev branch of GCC (4.8.x) is going to bring GCC back on par by the looks of it.

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

Just look at that support table! Epic stuff. That's only accounting for currently available stable versions as well whereas the GCC table contains some 4.8 entries.

Like I said though, when GCC 4.8 hits stable release, it's going to be tight between the two again:

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