Commit fd808fcb authored by Shai Szulanski's avatar Shai Szulanski Committed by Facebook GitHub Bot

Make ExtendedCoroutineHandle truthy when it holds a truthy basic handle for a non-extended promise

Reviewed By: simpkins

Differential Revision: D32838375

fbshipit-source-id: d8c350715d3a5fc7ebaa69f723cb6626bdc80031
parent 56291f47
...@@ -220,7 +220,7 @@ class ExtendedCoroutineHandle { ...@@ -220,7 +220,7 @@ class ExtendedCoroutineHandle {
return {basic_, nullptr}; return {basic_, nullptr};
} }
explicit operator bool() const noexcept { return !!extended_; } explicit operator bool() const noexcept { return !!basic_; }
private: private:
template <typename Promise> template <typename Promise>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment