I'm working on a lib that makes use of rather large NTTPs
the great thing about them is:
no more messing around variadic templates, parameter packs, fold, recursion etc.
just calculate as usual - but in constexpr/consteval context
I'm looking for tips of how to handle them in a more graceful way
The issues are
-
compile times.
somehow the compiler seems really slow in processing these, although there is not a huge total number of them
with a typical NTTP size of 256 bytes it seems ok for now, but if I make it larger the compile time seems to increase linear in their size
also not sure what happens if there are more of them as in simple test cases -
error messages or inspection with debugger or intellisense etc.
type names are just too large for comfort
(for types one might use aliases, but the nttps are obv not types)