TypeDisplayer<... > Struct Template Reference

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

#include <TmplDebugging.hpp>

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,

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: