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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user