Re:Why the C++ standard ships every three years
by rrss on Saturday July 13, 2019 @02:43PM
(#20429505)
Those are all C++11 features, right? So they aren't much of an argument in favor of 14, 17, 20.
[ Parent
| on HN ]
Re:Why the C++ standard ships every three years
by MauranKilom on Sunday July 14, 2019 @09:59AM
(#20433407)
We also got Class Template Argument Deduction, structured bindings, various syntactic sugar (if (auto var = initializer) {}, if constexpr, fold expressions...), std::variant, std::optional, and a whole POSIX-style filesystem library, to name a few. And that's just C++17 alone.
It's nothing earth-shattering (that stuff is coming in C++20) but these are all features that improve the language and allow you to write better code. Consider e.g. if constexpr which can eliminate so much SFINAE cruft. Or CTAD to reduce the need for makeXYZ() functions.