(DEPRECATED) Helper template so that compilation fails if condition is not true. More...
#include <dune/common/static_assert.hh>
Static Public Member Functions | |
static void | no () |
(DEPRECATED) Helper template so that compilation fails if condition is not true.
If the condition is true a static function yes is available, othewise the only function available is no().
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 void IsTrue< condition >::no | ( | ) | [inline, static] |