Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

State of C++11 standard support in libc++?

Tags:

c++

c++11

libc++

Is there a good source of information on C++11 standard support in libc++? Its web site says 98% of the standard is supported but I'd like to know what features the other 2% are.

Something similar to this list for libstdc++ would be nice: http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2011

like image 433
Alex Korban Avatar asked Jul 27 '12 04:07

Alex Korban


People also ask

Does GCC 11 support C++17?

C++17 features are available since GCC 5. This mode is the default in GCC 11; it can be explicitly selected with the -std=c++17 command-line flag, or -std=gnu++17 to enable GNU extensions as well.

Does GCC 11 support C ++ 20?

Now that GCC 10 is out the door, the C++ coroutines functionality is being enabled by default when running in C++20 mode (std=c++20). Thus for next year's GCC 11 release will be working coroutines functionality when C++20 is enabled.

Does my compiler support 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.


1 Answers

Edit: From Howard Hinnant's comment below:

The chart is outdated already. I should update it or take it down. The only thing unimplemented in libc++ right now is 20.7.2.5 shared_ptr atomic access [util.smartptr.shared.atomic]. And I hope to get that done this weekend. [atomics] is there now. Oh, quick_exit is missing. I'm going to let the C library implement that.


The most recent and detailed information is already linked from the front page (doesn't mean it is new enough ☺).

The only major missing piece of C++'0x support is <atomic>.

Here is a by-chapter breakdown of what is passing tests and what isn't.

enter image description here

We can see that 76% of <atomic>, 3% of "[language.support]" and 2% of "[utilities]" are missing.

I don't think there would be more updated/detailed break down like the libstdc++ one.

like image 140
kennytm Avatar answered Sep 22 '22 06:09

kennytm