9 #ifndef _STRUS_BASE_ENABLE_IF_HPP_INCLUDED 
   10 #define _STRUS_BASE_ENABLE_IF_HPP_INCLUDED 
   14 #define STRUS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) 
   17 #undef STRUS_USE_STD_ENABLE_IF 
   18 #if __cplusplus >= 201103L 
   20 #define STRUS_USE_STD_ENABLE_IF 
   21 #elif defined __GNUC__ 
   22 #if STRUS_GCC_VERSION >= 40900 
   23 #define STRUS_USE_STD_ENABLE_IF 
   24 #endif // STRUS_GCC_VERSION 
   28 #if defined STRUS_USE_STD_ENABLE_IF 
   29 #include <type_traits> 
   31 template< 
bool B, 
class T = 
void >
 
   32 struct enable_if :
public std::enable_if<B,T> {};
 
   35 #else //STRUS_USE_STD_ENABLE_IF 
   37 #include <boost/utility.hpp> 
   38 #include <boost/type_traits.hpp> 
   41 template< 
bool B, 
class T = 
void >
 
   45 #endif //STRUS_USE_STD_ENABLE_IF 
Definition: enable_if.hpp:42