3 ms·
It's actually becoming easier as they make it a real programming language. The infamous template error messages are generally a result of two things: first, to
by edflsafoiewq 2y ago
It's actually becoming easier as they make it a real programming language.
The infamous template error messages are generally a result of two things: first, too many candidate functions because logic is cobbled together out of a nest of SFINAE overloads, which is ameliorated by moving the logic into normal code with if constexpr, etc; and second, type errors occurring deep in the call/expansion stack because unchecked values keep getting passed on just like in a dynamically typed language (which TMP basically is), which is ameliorated by moving the type checks higher up in the stack with concepts or static_assert.