Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by fluoridation on Monday November 28, 2022 @03:37PM
(#33779223)
Fair enough, but that addition wasn't to solve the problem of templates being too complex, but to support usages that were previously impossible.
[ Parent
| on HN ]
Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by usrnm on Monday November 28, 2022 @05:03PM
(#33780512)
They were possible and widely used, but a lot less ergonomic. You "just" had to copy-paste some number of instantiatons for the number of arguments between 0 and, say, 50.
Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by fluoridation on Tuesday November 29, 2022 @07:32AM
(#33786743)
Wasn't it also at the cost of compilation memory? I still remember the time when it was easy to crash compilers by just giving them hard enough templates.