Skip to content

Commit c90caab

Browse files
committed
mark couroutine_handle::from_address as noexcept to satisfy clang13
Not really sure if this is supposed to be noexcept, but clang13 fails to build anything due to this error.
1 parent d9e0e41 commit c90caab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/coroutine/frame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct coroutine_handle : public coroutine_handle<void> {
121121
return *this;
122122
}
123123
// 17.12.3.2, export/import
124-
static /*constexpr*/ coroutine_handle from_address(void* _Addr) {
124+
static /*constexpr*/ coroutine_handle from_address(void* _Addr) noexcept {
125125
coroutine_handle _Result{};
126126
_Result._Ptr = reinterpret_cast<portable_coro_prefix*>(_Addr);
127127
return _Result;

0 commit comments

Comments
 (0)