Skip to content

Commit

Permalink
Compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 30, 2023
1 parent 1ae9e76 commit 5146f9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coroio/corochain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ struct TValueTaskBase : std::coroutine_handle<TValuePromise<T>> {
template<typename T>
struct TValueTask : public TValueTaskBase<T> {
T await_resume() {
auto& errorOr = *this->promise()->ErrorOr;
if (auto* res = std::get_if(&errorOr)) {
auto& errorOr = *this->promise().ErrorOr;
if (auto* res = std::get_if<T>(&errorOr)) {
return *res;
} else {
std::rethrow_exception(std::get<std::exception_ptr>(errorOr));
Expand Down

0 comments on commit 5146f9d

Please sign in to comment.