Skip to content

Commit

Permalink
MSVC fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Oct 4, 2023
1 parent 2b84801 commit 93d6896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Future.hh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ namespace crouton {
Result<T> result() && {return std::move(_state)->result();}

bool await_ready() noexcept {return _state->hasResult();}
auto await_suspend(coro_handle coro) noexcept {
coro_handle await_suspend(coro_handle coro) noexcept {
return lifecycle::suspendingTo(coro, _handle, _state->suspend(coro));
}
[[nodiscard]] Result<T> await_resume() noexcept {
Expand All @@ -273,7 +273,7 @@ namespace crouton {
bool await_ready() noexcept override {
return !this->_state || NoThrow<T>::await_ready();
}
auto await_suspend(coro_handle coro) noexcept override {
coro_handle await_suspend(coro_handle coro) noexcept override {
return NoThrow<T>::await_suspend();
}
[[nodiscard]] Result<T> await_resume() noexcept override {
Expand Down

0 comments on commit 93d6896

Please sign in to comment.