Re:C++26 Reflections adventures and compile time UML
by jandrewrogers on Sunday August 03, 2025 @03:55AM
(#44774924)
C++11 was for me the first version of C++ where the expressiveness justified the extra complexity relative to C. It was when I finally committed to using C++ instead of C for systems code. In the same sense, C++20 is qualitatively better than C++11 in every way and dramatically reduces the complexity of C++11 while adding many features C++11 needed.
Re:C++26 Reflections adventures and compile time UML
by pjmlp on Monday August 04, 2025 @01:30AM
(#44782383)
I would add C++23, but only due to std being available as modules, and at least on VC++ is kind of ok for side projects.
Re:C++26 Reflections adventures and compile time UML
by otabdeveloper4 on Sunday August 03, 2025 @03:45AM
(#44774886)
Just because someone didn't bother to learn anything past C++11 doesn't mean C++11 is some sort of performance sweet spot.
Smart pointers being a great example. Shared ptr has its issues, it isn’t the most performant choice in most cases, but it by far reduces more footguns than it introduces.
Compared to something like std::variant in the C++17 standard that comes with poor enough performance issues that it’s rarely ever a good fit.