qt6-bb10/tests/auto/corelib/tools
Ivan Solovev 528c78d3a2 tst_collections.cpp: fix RecursiveList comparison case
The RecursiveList structure was defined like this:

 struct RecursiveList : public QList<RecursiveList> {};

However, this definition does not make any sense when it comes to the
relational operators. QList<T> needs to have operator<() defined for
the contained type T.

The current implementation of QTypeTraits::compare_lt_result_container
simply enables operator<() if Container is a base type of the contained
type. This unblocks the compilation of checks like

 static_assert(QTypeTraits::has_operator_less_than_v<RecursiveList>);

However, this is useless in practice.

This commit updates the struct to have a meaningful definition of
operator<().

Amends 9f13842fe6.

Task-number: QTBUG-120305
Pick-to: 6.5
Change-Id: Iaee96385a33ff131bdceabe945265b3285a370c2
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 58c492a4dc9868faff7e9334758947cf0027eeac)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-12-04 15:14:25 +00:00
..
collections tst_collections.cpp: fix RecursiveList comparison case 2024-12-04 15:14:25 +00:00
containerapisymmetry QHash: adapt to C++20 ranges not offering operator->() 2024-08-20 01:28:02 +00:00
qalgorithms Change license for tests files 2024-02-04 09:56:42 +01:00
qarraydata Change license for tests files 2024-02-04 09:56:42 +01:00
qatomicscopedvaluerollback Change license for tests files 2024-02-04 09:56:42 +01:00
qbitarray Tests: disable various compiler warnings 2024-07-12 00:48:40 +00:00
qcache Change license for tests files 2024-02-04 09:56:42 +01:00
qcommandlineparser QCommandLineParser: remove redundant #ifdef from unittest 2024-03-16 16:41:03 +02:00
qcontiguouscache Change license for tests files 2024-02-04 09:56:42 +01:00
qcryptographichash Long live QCryptographicHash::hashInto()! 2024-05-29 14:24:29 +02:00
qduplicatetracker Change license for tests files 2024-02-04 09:56:42 +01:00
qeasingcurve QEasingCurve: use comparison helper macros 2024-05-10 16:31:28 +02:00
qexplicitlyshareddatapointer Change license for tests files 2024-02-04 09:56:42 +01:00
qexplicitlyshareddatapointerv2 QExplicitlySharedDataPointerV2: Add unit-tests 2024-07-16 15:37:55 +00:00
qflatmap Change license for tests files 2024-02-04 09:56:42 +01:00
qfreelist QFreeList: return timer IDs with the serial included 2024-10-19 06:50:26 +00:00
qhash QHash: Unconceptify heterogeneous search code 2024-09-06 15:55:07 +00:00
qhashfunctions Fix QT_SUPPORTS_INT128 checks 2024-08-07 19:57:04 +00:00
qhashseed Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
qline Tests: suppress has_denorm deprecation 2024-09-06 14:38:21 +00:00
qlist QList: fix std::to_address(QList::iterator) on older compilers 2024-10-29 01:10:27 +00:00
qmacautoreleasepool Change license for tests files 2024-02-04 09:56:42 +01:00
qmakearray Change license for tests files 2024-02-04 09:56:42 +01:00
qmap QMap: add missing qHash() overload 2024-02-09 20:33:05 +00:00
qmargins QMarginsF: add qFuzzyCompare and qFuzzyIsNull overloads 2024-05-10 15:33:40 +02:00
qmessageauthenticationcode Change license for tests files 2024-02-04 09:56:42 +01:00
qoffsetstringarray QOffsetStringArray: fix off-by-one error for the past-the-end elements 2024-07-25 20:06:41 +00:00
qpair Change license for tests files 2024-02-04 09:56:42 +01:00
qpoint QPoint(F): use comparison helper macros 2024-05-10 15:33:39 +02:00
qpointf Add qFuzzyCompare() and qFuzzyIsNull() overloads for QPointF 2024-05-10 15:33:39 +02:00
qqueue Change license for tests files 2024-02-04 09:56:42 +01:00
qrect QRectF: add qFuzzyCompare and qFuzzyIsNull overloads 2024-05-10 15:33:40 +02:00
qringbuffer Change license for tests files 2024-02-04 09:56:42 +01:00
qscopedpointer Change license for tests files 2024-02-04 09:56:42 +01:00
qscopedvaluerollback Change license for tests files 2024-02-04 09:56:42 +01:00
qscopeguard Change license for tests files 2024-02-04 09:56:42 +01:00
qset Change license for tests files 2024-02-04 09:56:42 +01:00
qsharedpointer Don't increase the refcount if qobject_cast failed 2024-09-05 12:29:51 +00:00
qsize QSize(F): use comparison helper macros 2024-05-14 14:33:21 +02:00
qsizef QSizeF: add qFuzzyCompare and qFuzzyIsNull overloads 2024-05-14 14:33:21 +02:00
qspan tst_QSpan: port to QTEST_THROW_ON_FAIL 2024-06-20 01:55:26 +00:00
qstl Change license for tests files 2024-02-04 09:56:42 +01:00
qtaggedpointer Change license for tests files 2024-02-04 09:56:42 +01:00
qtimeline Change license for tests files 2024-02-04 09:56:42 +01:00
qtyperevision QTypeRevision: fix support for 8-bit signed segments 2024-09-14 16:38:08 +00:00
quniquehandle Fix warning: remove unused parameter 2024-04-04 00:51:46 +00:00
qvarlengtharray QVarLengthArray: re-publish Prealloc as a nested PreallocatedSize 2024-02-15 17:44:36 +00:00
qversionnumber QVersionNumber: use new comparison helper macros 2024-05-06 22:47:55 +02:00
CMakeLists.txt QExplicitlySharedDataPointerV2: Add unit-tests 2024-07-16 15:37:55 +00:00