qt6-bb10/tests/auto/corelib/global
Marc Mutz fa4d18b86c Revert "qxp::function_ref: drop use of q23::invoke_r"
This reverts commit b9cce12e76, which
broke

    function_ref<void(int)> f = [](int i) { return i; };

ie. swallowing of return types.

We could maybe implement the same without invoke_r, with the same
manual if-constexpr that invoke_r has, but it would be a pointless
duplication across the two thunks we have, so just use invoke_r.

Add tests.

Pick-to: 6.4
Task-number: QTBUG-103739
Change-Id: I6034f05d813c06a25e8058ded5b6b62f3ca858b4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-06-14 01:30:48 +00:00
..
q_func_info Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcompare Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qflags Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfloat16 Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qgetputenv Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qglobal qglobal.h: use the GCC attribute for nothrow in C mode 2022-05-27 14:12:07 -07:00
qglobalstatic Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qhooks Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeycombination Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlogging Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qnativeinterface Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qnumeric Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qoperatingsystemversion Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qrandomgenerator Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtendian Endian: Allow special bitfield union fields to cover the whole storage 2022-06-02 14:02:44 +02:00
qwinregistry Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qxp Revert "qxp::function_ref: drop use of q23::invoke_r" 2022-06-14 01:30:48 +00:00
CMakeLists.txt Short live qxp::function_ref! 2022-06-02 12:54:55 +02:00