From 9ead0b04318345e8f2f573125e10c99f0a4b8e3c Mon Sep 17 00:00:00 2001 From: Kari Oikarinen Date: Tue, 25 Feb 2020 17:23:48 +0200 Subject: tst_QScopeGuard: Fix build by giving template parameters explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit std::function does not have deduction guides in older libc++ (presumably older than version 10). Omitting the template parameter isn't essential for the test, so just give it. Change-Id: Ia9bb91f961b0928203737ec976913effd06433e0 Reviewed-by: Jüri Valdmann --- tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp b/tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp index e5393f694e..dded694001 100644 --- a/tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp +++ b/tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp @@ -100,8 +100,8 @@ void tst_QScopeGuard::construction() QScopeGuard fromFunctionPointer(&func); QScopeGuard fromNonVoidFunction(intFunc); QScopeGuard fromNoDiscardFunction(noDiscardFunc); - QScopeGuard fromStdFunction{std::function(func)}; - std::function stdFunction(func); + QScopeGuard fromStdFunction{std::function(func)}; + std::function stdFunction(func); QScopeGuard fromNamedStdFunction(stdFunction); #else QSKIP("This test requires C++17 Class Template Argument Deduction support enabled in the compiler."); -- cgit v1.2.3