forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#70 from daschuer/gh11551
[qt5-base] Add Patch to replace std::result_of with decltype
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From fb6acf08bbd7a68d027282251747620b942bd1d6 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= <[email protected]> | ||
Date: Tue, 18 Feb 2020 10:13:22 +0100 | ||
Subject: [PATCH] Replace usage of std::result_of with decltype | ||
|
||
It's slated for removal in c++20 | ||
|
||
Fixes: QTBUG-82240 | ||
Change-Id: I7b35c151413b131ca49b2c09b6382efc3fc8ccb6 | ||
Reviewed-by: Timur Pocheptsov <[email protected]> | ||
--- | ||
src/corelib/kernel/qobjectdefs.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/corelib/kernel/qobjectdefs.h b/src/corelib/kernel/qobjectdefs.h | ||
index dc2d832fe5b..becbb90a61a 100644 | ||
--- a/src/corelib/kernel/qobjectdefs.h | ||
+++ b/src/corelib/kernel/qobjectdefs.h | ||
@@ -532,7 +532,7 @@ struct Q_CORE_EXPORT QMetaObject | ||
static typename std::enable_if<!QtPrivate::FunctionPointer<Func>::IsPointerToMemberFunction | ||
&& QtPrivate::FunctionPointer<Func>::ArgumentCount == -1 | ||
&& !std::is_convertible<Func, const char*>::value, bool>::type | ||
- invokeMethod(QObject *context, Func function, typename std::result_of<Func()>::type *ret) | ||
+ invokeMethod(QObject *context, Func function, decltype(function()) *ret) | ||
{ | ||
return invokeMethodImpl(context, | ||
new QtPrivate::QFunctorSlotObjectWithNoArgs<Func, decltype(function())>(std::move(function)), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters