News for hackers. Stuff that matters.
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by throwaway72937 on Sunday August 14, 2022 @05:24AM (#32457798)
Is there a book like “C++ for C++ programmers” for people that knew C++ 20 years ago but didn’t keep up with the latest features?
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by laurowyn on Sunday August 14, 2022 @05:59AM (#32457965)
Modern Effective C++ by Scott Meyers is my go to for people in this situation. I'm not sure if there's an even more recent edition that covers C++17 and C++20, but C++11/14 is definitely a great head start over C++03 and earlier.
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by 6equj5 on Sunday August 14, 2022 @01:51PM (#32461302)
I can second Effective Modern C++: https://www.oreilly.com/library/view/effective-modern-c/9781...

The most amazing thing about it is how it manages to be so entertaining to read (the last thing I expected from a C++ textbook and a thing that made getting through it way easier)!

>I'm not sure if there's an even more recent edition that covers C++17 and C++20

Sadly, there is not. Scott for-the-most-part retired in 2015: https://scottmeyers.blogspot.com/2015/12/good-to-go.html

Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by einpoklum on Sunday August 14, 2022 @06:18AM (#32458056)
There are lots of good CppCon sessions you could watch. Unfortunately, they're not in the form of a comprehensive book. Maybe you should try Bjarne Stroupstrup's "Tour of C++":

https://www.stroustrup.com/tour2.html

which might fit the bill. It doesn't go very far in depth, though. 240 pages.

Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by elcapitan on Sunday August 14, 2022 @08:38AM (#32458764)
Isn't that what the linked website is for? https://www.cppstories.com/p/start-here/
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by Willox on Sunday August 14, 2022 @06:19AM (#32458061)
My go-to for this is "A Tour of C++". It's pretty short and only really covers up to C++17 with a few mentions of C++20.
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by SamReidHughes on Sunday August 14, 2022 @04:32PM (#32462680)
For C++0x I found the Wikipedia article on C++0x back in the day to be a good summary. That might still hold.
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by frozenport on Sunday August 14, 2022 @04:40PM (#32462746)
Wouldn't call recursive lambdas a feature, more like 4chan for C++ devs
Re:Curious C++ Lambda Examples: Recursion, constexpr, Contai... by gardn_water on Sunday August 14, 2022 @05:57AM (#32457962)
Please let us know too, I been searching one for myself