News for hackers. Stuff that matters.
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by cbsmith on Monday November 28, 2022 @04:22PM (#33779888)
I mean, that's just the tip of the iceberg. Templates have evolved a great deal over time, and continue to do so (C++20 added Concepts).
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by kllrnohj on Monday November 28, 2022 @06:24PM (#33781347)
Constraints and concepts don't increase the scope or feature set of templates, which was GP's broader point. That is, all the additions are around things that are a smaller, but easier to use, subset of the broader feature. `if constexpr` for example just being a way more approachable std::enable_if, not an expansion of the feature set. And concepts then are about clarifying the contract of the template, they don't actually add new capabilities.

It'd be I think reflection, however that ends up looking, that's the next actual feature set expansion of templates.

Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by cbsmith on Monday November 28, 2022 @10:01PM (#33783183)
They added a whole new keyword just to support it. Just because C++ templates are Turing complete doesn't mean new features don't count as new features.