diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 6999538ee8..d9ba41e70a 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -642,7 +642,9 @@ namespace detail { template && std::is_arithmetic_v && std::is_floating_point_v == std::is_floating_point_v && - std::is_signed_v == std::is_signed_v> > + std::is_signed_v == std::is_signed_v && + !std::is_same_v && !std::is_same_v && + !std::is_same_v && !std::is_same_v>> struct Promoted { using type = decltype(T() + U());