qt5base-lts/tests/auto/corelib/global/qxp
Mårten Nordheim 3d73aa660b function_ref test: Don't take reference of temporaries
When assigning the lambdas directly to a function_ref their lifetime is
limited to that of the expression. Store them on the stack first to
avoid the UB.

Fixes: QTBUG-104419
Pick-to: 6.4
Change-Id: I3c85ac683b0bd7768b646dc9d0a1ed4dd173e6f3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-06-20 19:52:01 +00:00
..
function_ref function_ref test: Don't take reference of temporaries 2022-06-20 19:52:01 +00:00
CMakeLists.txt Short live qxp::function_ref! 2022-06-02 12:54:55 +02:00