Changeset 3233 for code/trunk/src/util/TemplateUtils.h
- Timestamp:
- Jun 26, 2009, 11:42:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/TemplateUtils.h
r3232 r3233 39 39 namespace orxonox 40 40 { 41 /** 42 @brief 43 Use TypeStripper to get rid of the const and the reference of type T 44 @note 45 Main use of this is when trying to instantiate type T as T(). 46 */ 47 template <class T> struct TypeStripper 48 { typedef T RawType; }; 49 template <class T> struct TypeStripper<const T> 50 { typedef T RawType; }; 51 template <class T> struct TypeStripper<const T&> 52 { typedef T RawType; }; 53 54 41 55 /////////////////////////////////////////////////// 42 56 // Static detection of implicit type conversions //
Note: See TracChangeset
for help on using the changeset viewer.