qt6-bb10/tests/auto/corelib/tools/qspan
Marc Mutz cad7935b6f tst_QSpan: check QList<int> -> QSpan<const int> doesn't detach the former
It does.

While std::span, does, too, and so users should be using
std::as_const(), it's quite simple to avoid for QSpan, so we'll fix it
in QSpan. This patch adds the reproducer.

Task-number: QTBUG-132133
Change-Id: I2e416fb7344830cd5e0d945cce61491cd6f4a7a5
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 05b9a4b2deefd586356e1f36d84372b06e74cfe3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit aff082764ae2dc6ca3c7e9c9ee6573bdd5b4a2de)
2024-12-25 07:37:44 +00:00
..
CMakeLists.txt tst_QSpan: port to QTEST_THROW_ON_FAIL 2024-06-20 01:55:26 +00:00
tst_qspan.cpp tst_QSpan: check QList<int> -> QSpan<const int> doesn't detach the former 2024-12-25 07:37:44 +00:00