diff --git a/src/corelib/global/qtypetraits.h b/src/corelib/global/qtypetraits.h index 54b48667b4..692a982adf 100644 --- a/src/corelib/global/qtypetraits.h +++ b/src/corelib/global/qtypetraits.h @@ -246,6 +246,10 @@ template<> struct is_integral : true_type { }; template struct is_integral : is_integral { }; template struct is_integral : is_integral { }; template struct is_integral : is_integral { }; +#if defined (Q_COMPILER_UNICODE_STRINGS) +template<> struct is_integral : true_type { }; +template<> struct is_integral : true_type { }; +#endif // is_floating_point is false except for the built-in floating-point types. // A cv-qualified type is integral if and only if the underlying type is.