#include <static_assert.hh>
Example for compile time check whether two types are the same:
IsTrue<is_same<int,int>::value>::yes(); // IsTrue<is_same<bool,int>::value>::yes(); // false, will trigger a compile time error
A test that trigger a compile time error if condition is true:
Static Public Member Functions | |
static void | no () |
static void IsTrue< condition >::no | ( | ) | [inline, static] |