SpECTRE  2021.08.02
TypeDisplayer<... > Struct Template Reference

Get compiler error with type of template parameter. More...

Detailed Description

template<typename...>
struct TypeDisplayer<... >

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,

Get compiler error with type of template parameter.
Definition: TmplDebugging.hpp:31

will produce a compiler error that contains the type std::vector<double, std::allocator...>. TypeDisplayer is extremely useful when debugging template metaprograms.

Note
The TypeDisplayer header should only be included during testing and debugging.
See also
make_list