SpECTRE
v2024.09.29
|
Get compiler error with type of template parameter. More...
Get compiler error with type of template parameter.
The compiler error generated when using an object of type TypeDisplayer<...>
contains the types of the template parameters. This effectively provides printf-debugging for metaprogramming. For example,
will produce a compiler error that contains the type std::vector<double, std::allocator...>
. TypeDisplayer is extremely useful when debugging template metaprograms.