Skip to content

Commit b1f68cb

Browse files
authored
fix: fix segfault in dpp::task on g++ starting with 15.2 (gcc-mirror/gcc@a169a47 specifically) (#1512)
1 parent 372ab76 commit b1f68cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/dpp/coro/task.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ struct promise_base : basic_promise<R> {
282282

283283
/** @brief Wrapper for the awaitable's await_suspend */
284284
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));
285+
[[nodiscard]] decltype(auto) await_suspend(T handle) noexcept(noexcept(awaitable.await_suspend(std::move(handle)))) {
286+
return awaitable.await_suspend(std::move(handle));
287287
}
288288

289289
/**

0 commit comments

Comments
 (0)