mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 04:20:25 +08:00
libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021]
The coroutine_handle<void>::from_address(void*) version is already noexcept, and they do the same thing. Make them consistent. libstdc++-v3/ChangeLog: PR libstdc++/99021 * include/std/coroutine (coroutine_handle<P>::from_address): Add noexcept.
This commit is contained in:
parent
adeaa43ad3
commit
26a3f288f1
@ -206,7 +206,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
|
||||
constexpr void* address() const noexcept { return _M_fr_ptr; }
|
||||
|
||||
constexpr static coroutine_handle from_address(void* __a)
|
||||
constexpr static coroutine_handle from_address(void* __a) noexcept
|
||||
{
|
||||
coroutine_handle __self;
|
||||
__self._M_fr_ptr = __a;
|
||||
|
Loading…
x
Reference in New Issue
Block a user