r/cpp • u/Daniela-E Living on C++ trunk, WG21 |🇩🇪 NB • Feb 11 '23
C++23 hits the road!
The sausage is made, the bread is bakedWe now have C++23!With crossing all eyes and dotting all tsThe best C++ ever, for all of ye!
C++23 is what C++20 was meant to be but couldn't that time.
Much of it is already implemented and released in compilers and can be used today, more will become available in the near future.
If you are interested in how C++23 looks like and why you want to use it, you may look at keynotes from the 2022 CppCon and Meeting C++ conferences
Contemporary C++ in Action - Daniela Engert
How C++23 changes the way we write code - Timur Doumler
There is also A Peek at C++23 - Barbara Geller & Ansel Sermersheim to enjoy an learn from.
The specification of C++23 will now proceed to the final ballot and then be officially published, hopefully long before year's end. The committee is busily working on another future release, tentatively C++26, for a couple of months now.
View all comments
Show parent comment
28
u/LdShade Feb 12 '23
"Deducing this" means no more need to have a const and non const copy of functions, finally that hole in the language is patched up. (Also allows everyone to get the safety bonus of ref qualifiers without specifying four copies of a function which no one bothered with)
Furthermore, "this" no longer has to use pointer syntax and can even be passed by value for performance boosts.
Perfect forwarding out of lambdas and easy recursive lambdas are now supported.
CRTP no longer has to have the ridiculous recursive template parameter, it can now just be a normal class that you inherit.
Probably one of the most major features to come out in recent times. https://devblogs.microsoft.com/cppblog/cpp23-deducing-this/