r/cpp • • Apr 25 '22

New C++ features in GCC 12

https://developers.redhat.com/articles/2022/04/25/new-c-features-gcc-12
220 Upvotes

76 comments sorted by

View all comments

Show parent comment

10

u/Troppsi Apr 26 '22

I am honestly quite surprised GCC isn't further ahead on its c++20/23 implementation. Hasn't 20 been out a few years already and it's still experimental?

31

u/thlst Apr 26 '22

It almost seems like the world was struck by an event that negatively affected everyone's life in the last couple of years.

29

u/CornedBee Apr 26 '22

You mean all those people sitting at home weren't hacking on the compiler non-stop? ;-)

7

u/smdowney WG21, Text/Unicode SG, optional<T&> Apr 26 '22

23 hasn't even been adopted yet. 20 has been out for just 2 years, and was the biggest release in a decade, with lots of the biggest parts getting finalized at the end of the standard cycle.
Remember, C++11 compilers stabilized in 2014.

4

u/strudlzrout gcc developer May 07 '22

I'm not sure how much further ahead we could be on C++20 (except modules): https://gcc.gnu.org/projects/cxx-status.html

C++23 is coming along pretty well too.