QtPrivate::Continuation: add missing Q_DISABLE_COPY(_MOVE)

This polymorphic class is not designed for copying or moving, so
statically assert that it isn't moved or copied.

Amends dfaca09e85.

Pick-to: 6.7
Task-number: QTBUG-124909
Change-Id: I6a4fe460adf9bf903578601e500ccc697a3f7c96
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2024-04-30 12:22:53 +02:00
parent 78b0d507ce
commit e53df7a021
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ using IsForwardIterable =
template<typename Function, typename ResultType, typename ParentResultType>
class Continuation
{
Q_DISABLE_COPY_MOVE(Continuation)
public:
template<typename F = Function>
Continuation(F &&func, const QFuture<ParentResultType> &f, QPromise<ResultType> &&p)