Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++11 Compiler: Closest to the standard and how close?

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?

like image 258
dsimcha Avatar asked Aug 29 '11 16:08

dsimcha


People also ask

Is my compiler C++11?

To see if your compiler has C++11 support, run it with just the --version option to get a print out of the version number. Do this for whichever compiler(s) you wish to use with Rosetta. Acceptable versions: GCC/g++: Version 4.8 or later.

Is there an official C compiler?

No, there is no compiler provided by the C standard and thus no way to install it. You have to use a third-party compiler. The most common for Linux and macOS are called GCC (GNU Compiler Collection) and Clang.

Which C++ standard should I use?

We recommend choosing the latest standard “ISO C++ Latest (/std:c++latest)”, which as of the time of writing is the setting for C++20 support.


2 Answers

There's a support matrix on the Apache wiki.

like image 121
Cat Plus Plus Avatar answered Sep 19 '22 20:09

Cat Plus Plus


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

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

like image 32
sbi Avatar answered Sep 19 '22 20:09

sbi