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 <timur.pocheptsov@qt.io> (cherry picked from commit fb6acf08bbd7a68d027282251747620b942bd1d6)
This commit is contained in:
parent
34369b5e90
commit
157be588f7
@ -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)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user