From bca56f277e5d3a12173c6207afe6e5f369a77c26 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 29 May 2024 10:02:07 +0200 Subject: [PATCH] Qt::totally_ordered_wrapper: specialize QTypeInfo Simple: just inherit the payload type's (QTypeInfoMerger isn't needed, as the sizeof totally_ordered_wrapper

is the same as the sizeof P). Yes, this means Qt::totally_ordered_wrapper

is marked as isPointer, but that trait is already deprecated. Found in API-Review. Change-Id: I4b5df08cd4891bd463d1f127c17ed5c4cd812984 Reviewed-by: Ivan Solovev (cherry picked from commit 5bfb6d513c0692ba1b6621b2ff0b3207088eb742) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qcomparehelpers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/global/qcomparehelpers.h b/src/corelib/global/qcomparehelpers.h index 9754505e70..9a0f0f83a4 100644 --- a/src/corelib/global/qcomparehelpers.h +++ b/src/corelib/global/qcomparehelpers.h @@ -16,6 +16,7 @@ #include #include +#include #include #ifdef __cpp_lib_three_way_comparison @@ -663,6 +664,9 @@ private: } //Qt +template +class QTypeInfo> : public QTypeInfo

{}; + QT_END_NAMESPACE namespace std {