20 #include <type_traits> 35 static inline U
dynamic(T *iPtr,
typename std::enable_if<!std::is_polymorphic<T>::value>::type * =
nullptr)
41 static inline U
dynamic(T *iPtr,
typename std::enable_if<std::is_polymorphic<T>::value>::type * =
nullptr)
43 return dynamic_cast<U>(iPtr);
static U dynamic(T *iPtr, typename std::enable_if< std::is_polymorphic< T >::value >::type *=nullptr)
Definition: Metaprogramming.h:41
Definition: Metaprogramming.h:31
static U dynamic(T *iPtr, typename std::enable_if<!std::is_polymorphic< T >::value >::type *=nullptr)
Definition: Metaprogramming.h:35