From 5434cc13920aa2af1126f9bfb5671c11d96c9699 Mon Sep 17 00:00:00 2001 From: Amber Ehrlich Date: Tue, 15 Aug 2023 16:52:22 -0400 Subject: [PATCH] i lied, but this time for sure --- include/dpp/coro/awaitable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dpp/coro/awaitable.h b/include/dpp/coro/awaitable.h index 8b71c06c99..f2bcccb529 100644 --- a/include/dpp/coro/awaitable.h +++ b/include/dpp/coro/awaitable.h @@ -112,8 +112,8 @@ struct awaitable { */ template void await_suspend(detail::std_coroutine::coroutine_handle caller) noexcept(noexcept(std::invoke(fun, std::declval&&>()))) { - std::invoke(fun, [this, caller] (T&& api_result) mutable { - result = std::forward(api_result); + std::invoke(fun, [this, caller] (R_&& api_result) mutable { + result = std::forward(api_result); caller.resume(); }); }