2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-24 02:12:12 +00:00

Fix awaitable exception pointer check typos.

This commit is contained in:
Christopher Kohlhoff
2023-03-01 23:08:55 +11:00
parent d341036043
commit 87c178c9ea

View File

@@ -953,7 +953,7 @@ public:
static T resume(result_type& result)
{
if (*result)
if (*result.ex_)
{
std::exception_ptr ex = std::exchange(*result.ex_, nullptr);
std::rethrow_exception(ex);
@@ -1068,7 +1068,7 @@ public:
static std::tuple<Ts...> resume(result_type& result)
{
if (*result)
if (*result.ex_)
{
std::exception_ptr ex = std::exchange(*result.ex_, nullptr);
std::rethrow_exception(ex);