QCoro::Generator<T> is currently not properly move-constructible, as the move constructor holds a reference to the existing std::coroutine_handle, destroying it when the original generator is destroyed.
This PR creates a custom move constructor for QCoro::Generator<T> in order to properly move-construct it.
QCoro::Generator<T>
is currently not properly move-constructible, as the move constructor holds a reference to the existingstd::coroutine_handle
, destroying it when the original generator is destroyed.This PR creates a custom move constructor for
QCoro::Generator<T>
in order to properly move-construct it.