Changeset 3234
- Timestamp:
- Jun 26, 2009, 11:46:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/Convert.h
r3232 r3234 237 237 struct ConverterExplicit 238 238 { 239 enum { probe = ImplicitConversion<FromType, ToType>::exists }; 239 240 FORCEINLINE static bool convert(ToType* output, const FromType& input) 240 241 { 241 242 // Try implict cast and probe first. If a simple cast is not possible, it will not compile 242 243 // We therefore have to out source it into another template function 243 const bool probe = ImplicitConversion<FromType, ToType>::exists;244 244 return convertImplicitely(output, input, detail::Int2Type<probe>()); 245 245 }
Note: See TracChangeset
for help on using the changeset viewer.