tst_QScopeGuard: Fix build by giving template parameters explicitly
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 <juri.valdmann@qt.io>bb10
parent
3f9862db95
commit
9ead0b0431
|
|
@ -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<void()>(func)};
|
||||
std::function<void()> stdFunction(func);
|
||||
QScopeGuard fromNamedStdFunction(stdFunction);
|
||||
#else
|
||||
QSKIP("This test requires C++17 Class Template Argument Deduction support enabled in the compiler.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue