SpECTRE  v2024.09.29
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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

The documentation for this struct was generated from the following file: