From 19aa5da9b588f33cb19f2ca21d29b145d30eeab2 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 24 Mar 2023 07:57:46 +0100 Subject: [PATCH] tst_containerapisymmetry: check that std::size() works MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It does. Pick-to: 6.6 6.5 Task-number: QTBUG-112183 Change-Id: Ieddf7764dcb8e145e37e86b9fcd35c19d302ca4f Reviewed-by: MÃ¥rten Nordheim --- .../tools/containerapisymmetry/tst_containerapisymmetry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp b/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp index d683950445..68d9d38021 100644 --- a/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp +++ b/tests/auto/corelib/tools/containerapisymmetry/tst_containerapisymmetry.cpp @@ -756,7 +756,7 @@ void tst_ContainerApiSymmetry::resize_impl() const auto c = make(3); QCOMPARE(c.size(), S(3)); c.resize(4, V(5)); - QCOMPARE(c.size(), S(4)); + QCOMPARE(std::size(c), S(4)); QCOMPARE(c.back(), V(5)); // ctor/resize symmetry: