18 #ifndef __H__OCULAR_UTILITIES_VOID_CAST__H__
19 #define __H__OCULAR_UTILITIES_VOID_CAST__H__
21 #include <type_traits>
78 static typename std::enable_if<std::is_trivial<T>::value, T>::type void_cast(
void* val)
80 if(
sizeof(T) <=
sizeof(
void*))
95 static typename std::enable_if<std::is_trivial<T>::value,
void*>::type void_cast(T
const& t)
97 if(
sizeof(T) <=
sizeof(
void*))
112 static typename std::enable_if<!std::is_trivial<T>::value, T>::type void_cast(
void* val)
120 static typename std::enable_if<!std::is_trivial<T>::value,
void*>::type void_cast(T
const& t)
Definition: VoidCast.hpp:71