General Utility Library for C++14  2.7
gul14::FailToInstantiate< T > Class Template Reference

Detailed Description

template<typename T>
class gul14::FailToInstantiate< T >

A helper class to debug types.

This is - on purpose - an incomplete templated class.

Trying to instantiate an object of this class will result in a compiler error with a detailed description of template argument T.

Template Parameters
TType to investigate

A using example:

auto t = some_type_or_another{ };
gul14::FailToInstantiate<decltype(t)>{};

A more realistic example for people shying away from auto:

template <typename T>
void my_function(T param)
{
// wondering if T is what I expect...
}

#include <type_name.h>


The documentation for this class was generated from the following file:
gul14::FailToInstantiate
A helper class to debug types.
Definition: type_name.h:60