Changeset 11098 for code/trunk/src/libraries/util/Convert.h
- Timestamp:
- Jan 26, 2016, 8:32:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/util/Convert.h
r8858 r11098 128 128 #include <sstream> 129 129 #include <typeinfo> 130 #include <type_traits> 130 131 #include <loki/TypeManip.h> 131 132 132 133 #include "Output.h" 133 #include "ImplicitConversion.h"134 134 135 135 // disable warnings about possible loss of data … … 308 308 struct ConverterExplicit 309 309 { 310 enum { probe = ImplicitConversion<FromType, ToType>::exists };310 static constexpr bool probe = std::is_convertible<FromType, ToType>::value; 311 311 ORX_FORCEINLINE static bool convert(ToType* output, const FromType& input) 312 312 {
Note: See TracChangeset
for help on using the changeset viewer.