Changeset 310 for trunk/nv/type_traits.hh
- Timestamp:
- 08/14/14 19:00:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/type_traits.hh
r253 r310 207 207 ((TYPE*)object)->TYPE::~TYPE(); 208 208 } 209 210 template< typename T, typename IS_ENUM > 211 struct base_underlying_type_helper 212 { 213 typedef T type; 214 }; 215 216 template< typename T > 217 struct base_underlying_type_helper< T, std::true_type > 218 { 219 typedef typename nv::underlying_type<T>::type type; 220 }; 221 222 223 template< typename T > 224 struct base_underlying_type 225 { 226 typedef typename base_underlying_type_helper< T, typename std::is_enum<T>::type >::type type; 227 }; 228 229 209 230 } 210 231
Note: See TracChangeset
for help on using the changeset viewer.