Skip to content

Commit 8f20ebd

Browse files
authored
Merge pull request #44 from GorNishanov/master
fix MSVC and gcc-12 building
2 parents 7cc9433 + 4b2f3a6 commit 8f20ebd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/cppcoro/task.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace cppcoro
4949
// were crashing under x86 optimised builds.
5050
template<typename PROMISE>
5151
CPPCORO_NOINLINE
52-
void await_suspend(cppcoro::coroutine_handle<PROMISE> coroutine)
52+
void await_suspend(cppcoro::coroutine_handle<PROMISE> coroutine) noexcept
5353
{
5454
task_promise_base& promise = coroutine.promise();
5555

lib/static_thread_pool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <cassert>
1313
#include <mutex>
1414
#include <chrono>
15+
#include <utility>
1516

1617
namespace
1718
{

0 commit comments

Comments
 (0)