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
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With