qt6-bb10/tests/auto/corelib/io/qdebug
Jøger Hansegård b64e918c85 Call std::addressof instead of operator& in QDebug::toString
QDebug::toString intends to pass the input object's address to its
nested implementation, but was calling operator& which does not work
with types that has a custom overload. Calling std::addressof fixes this
problem.

Fixes: QTBUG-127510
Change-Id: Ie608f7b1a63c4032246b6ff98a3651695f0536ca
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 6cd6c3d6d70f8e76059153dd58ed2c61af2889b3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-07-25 11:21:35 +00:00
..
.gitignore
CMakeLists.txt cmake: Enable Objective-C++ language for standalone test projects 2023-08-01 20:42:30 +02:00
tst_qdebug.cpp Call std::addressof instead of operator& in QDebug::toString 2024-07-25 11:21:35 +00:00