News for hackers. Stuff that matters.
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.