diff --git a/src/corelib/global/qcomparehelpers.h b/src/corelib/global/qcomparehelpers.h index 1c727a8f37f..8bf78d766bc 100644 --- a/src/corelib/global/qcomparehelpers.h +++ b/src/corelib/global/qcomparehelpers.h @@ -565,7 +565,7 @@ constexpr bool IsFloatType_v = std::is_floating_point_v; #if QFLOAT16_IS_NATIVE template <> -constexpr bool IsFloatType_v = true; +inline constexpr bool IsFloatType_v = true; #endif } // namespace QtPrivate