qt5base-lts/tests/auto
Sona Kurazyan 9f13842fe6 Fix compilation for recursive Qt containers
The operator checks cause compilation errors when trying to check for
their existence for recursive containers. This happens because of trying
to check for the operators on the template parameter type(s), that
inherit from the container itself, which leads to compilation errors.
Introduced alternative versions of the operator checks (with _container
suffix), that first check if the container is recursive, i.e. any of its
template parameter types inherits from the given container, and skips
the operator check, if that's the case.

The fix is done for all Qt container types that had the problem, except
for QVarLengthArray and QContiguousCache, which don't compile with
recursive parameter types for unrelated reasons.

Fixes: QTBUG-91707
Pick-to: 6.2 6.1
Change-Id: Ia1e7240b4ce240c1c44f00ca680717d182df7550
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-09-07 15:48:35 +02:00
..
bic/data Add binary compatibility files for 6.1 2021-09-03 13:41:25 +00:00
cmake Implement generating of private cpp exports 2021-08-27 11:01:47 +02:00
concurrent QtConcurrent::run: support non default-constructible return types 2021-08-18 09:41:55 +02:00
corelib Fix compilation for recursive Qt containers 2021-09-07 15:48:35 +02:00
dbus tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
gui rhi: Enable serializing a layout description without baking an srb 2021-09-07 14:41:11 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network QLocalSocket/Win: fix waitFor...() functions for write-only socket 2021-09-02 08:47:11 +03:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Improve lancelot test of dashed line painting 2021-08-20 13:50:24 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
testlib Avoid senseless duplication of code in a testlib selftest 2021-09-01 17:11:43 +02:00
tools moc: Support BINDABLE for private properties 2021-08-06 17:25:50 +02:00
widgets Forward touchEvents to children inside QGraphicsProxyWidget 2021-09-06 19:41:22 +00:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build a subset of tests when targeting iOS in the CI 2021-08-26 16:40:15 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00