From de8d4ac0248a78ab0c6c1729c1fa42a5f8a6455a Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 28 Feb 2021 10:31:19 +0000 Subject: [PATCH] Add a missing noexcept marker. For the case that the compiler does not support symmetrical transfer the task promise base final awaitable is missing a noexcept marker. Added here. --- include/cppcoro/task.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cppcoro/task.hpp b/include/cppcoro/task.hpp index 3bff404f..97e16f54 100644 --- a/include/cppcoro/task.hpp +++ b/include/cppcoro/task.hpp @@ -49,7 +49,7 @@ namespace cppcoro // were crashing under x86 optimised builds. template CPPCORO_NOINLINE - void await_suspend(std::experimental::coroutine_handle coroutine) + void await_suspend(std::experimental::coroutine_handle coroutine) noexcept { task_promise_base& promise = coroutine.promise();