We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 372ab76 commit b1f68cbCopy full SHA for b1f68cb
1 file changed
include/dpp/coro/task.h
@@ -282,8 +282,8 @@ struct promise_base : basic_promise<R> {
282
283
/** @brief Wrapper for the awaitable's await_suspend */
284
template <typename T>
285
- [[nodiscard]] decltype(auto) await_suspend(T&& handle) noexcept(noexcept(awaitable.await_suspend(std::forward<T>(handle)))) {
286
- return awaitable.await_suspend(std::forward<T>(handle));
+ [[nodiscard]] decltype(auto) await_suspend(T handle) noexcept(noexcept(awaitable.await_suspend(std::move(handle)))) {
+ return awaitable.await_suspend(std::move(handle));
287
}
288
289
/**
0 commit comments