Changeset 7266 for code/trunk/src/libraries/util
- Timestamp:
- Aug 30, 2010, 5:04:12 PM (14 years ago)
- Location:
- code/trunk/src/libraries/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/util/Convert.h
r7163 r7266 41 41 #include <sstream> 42 42 #include <typeinfo> 43 #include <loki/TypeManip.h> 43 44 44 45 #include "Debug.h" … … 76 77 namespace orxonox 77 78 { 78 namespace detail79 {80 //! Little template that maps integers to entire types (Alexandrescu 2001)81 template <int I>82 struct Int2Type { };83 }84 85 86 79 /////////////////// 87 80 // No Conversion // … … 215 208 // implicit cast not possible, try stringstream conversion next 216 209 template <class FromType, class ToType> 217 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<false>)210 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, Loki::Int2Type<false>) 218 211 { 219 212 return ConverterStringStream<FromType, ToType>::convert(output, input); … … 222 215 // We can cast implicitely 223 216 template <class FromType, class ToType> 224 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<true>)217 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, Loki::Int2Type<true>) 225 218 { 226 219 (*output) = static_cast<ToType>(input); … … 242 235 // Try implict cast and probe first. If a simple cast is not possible, it will not compile 243 236 // We therefore have to out source it into another template function 244 return convertImplicitely(output, input, detail::Int2Type<probe>());237 return convertImplicitely(output, input, Loki::Int2Type<probe>()); 245 238 } 246 239 }; -
code/trunk/src/libraries/util/MultiType.h
r7165 r7266 76 76 #include <OgreQuaternion.h> 77 77 #include <OgreColourValue.h> 78 79 #include "TypeTraits.h" 78 #include <loki/TypeTraits.h> 80 79 81 80 namespace orxonox -
code/trunk/src/libraries/util/Scope.h
r5929 r7266 35 35 #include <map> 36 36 #include <set> 37 #include <loki/ScopeGuard.h> 37 38 38 39 #include "Debug.h" 39 #include "ScopeGuard.h"40 40 41 41 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.