- Timestamp:
- Jun 17, 2009, 9:49:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/util/Convert.h
r3152 r3189 121 121 namespace orxonox 122 122 { 123 namespace 123 namespace detail 124 124 { 125 125 //! Little template that maps integers to entire types (Alexandrescu 2001) … … 260 260 // implicit cast not possible, try stringstream conversion next 261 261 template <class FromType, class ToType> 262 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, orxonox::Int2Type<false>)262 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<false>) 263 263 { 264 264 return ConverterStringStream<FromType, ToType>::convert(output, input); … … 267 267 // We can cast implicitely 268 268 template <class FromType, class ToType> 269 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, orxonox::Int2Type<true>)269 FORCEINLINE bool convertImplicitely(ToType* output, const FromType& input, detail::Int2Type<true>) 270 270 { 271 271 (*output) = static_cast<ToType>(input); … … 287 287 // We therefore have to out source it into another template function 288 288 const bool probe = ImplicitConversion<FromType, ToType>::exists; 289 return convertImplicitely(output, input, orxonox::Int2Type<probe>());289 return convertImplicitely(output, input, detail::Int2Type<probe>()); 290 290 } 291 291 };
Note: See TracChangeset
for help on using the changeset viewer.