diff --git a/src/corelib/text/qbytearrayalgorithms.h b/src/corelib/text/qbytearrayalgorithms.h index badaf4f381..f80b97e04e 100644 --- a/src/corelib/text/qbytearrayalgorithms.h +++ b/src/corelib/text/qbytearrayalgorithms.h @@ -85,8 +85,8 @@ qsizetype count(QByteArrayView haystack, QByteArrayView needle) noexcept; // since it includes qbytearrayalgorithms.h. Use the ByteArrayView template type as // a workaround. template >> static inline -T toIntegral(ByteArrayView data, bool *ok, int base) + typename = std::enable_if_t>> +static inline T toIntegral(ByteArrayView data, bool *ok, int base) { auto val = [&] { if constexpr (std::is_unsigned_v)