cgv
is_enum.h
1 #pragma once
2 
3 #if !defined(_MSC_VER) || (_MSC_VER < 1400)
4 #include <tr1/type_traits>
5 #endif
6 
7 namespace cgv {
8  namespace type {
9  namespace cond {
10 
12 template <typename T>
13 struct is_enum
14 {
15  static const bool value =
16 #if _MSC_VER >= 1400
17  __is_enum(T);
18 #else
19  std::tr1::is_enum<T>::value;
20 #endif
21 };
22 
23  }
24  }
25 }
cgv::type::cond::is_enum
template condition returning, whether the given type is an enum type
Definition: is_enum.h:14
cgv
the cgv namespace
Definition: vr_calib.cxx:9