diff --git a/src/corelib/thread/qpromise.h b/src/corelib/thread/qpromise.h index 225ce3dee1..68645ef084 100644 --- a/src/corelib/thread/qpromise.h +++ b/src/corelib/thread/qpromise.h @@ -86,9 +86,7 @@ public: // Core QPromise APIs QFuture future() const { return d.future(); } - template>, - typename = QtPrivate::EnableIfSameOrConvertible, std::decay_t>> + template> bool addResult(U &&result, int index = -1) { return d.reportResult(std::forward(result), index);