You.i Engine
YiDependentFalse< T > Struct Template Reference

Detailed Description

template<typename... T>
struct YiDependentFalse< T >

A templated class that always contains a 'false' value. This is used to generate compilation errors when a user calls a specific function (by causing a compilation error when a function is instantiated rather than when it is defined.)

Example:

template<typename T>
static void DoNotCallThis()
{
static_assert(YiDependentFalse<T>::value, "Do not call this function.");
}

#include <utility/YiTypeTraits.h>

Static Public Attributes

static const bool value = false
 

Member Data Documentation

◆ value

template<typename... T>
const bool YiDependentFalse< T >::value = false
static

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