Skip to content

Commit

Permalink
fix return type in CountDownLatch
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Sep 3, 2024
1 parent e40027b commit 662cbab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/babylon/future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ inline CountDownLatch<M>& CountDownLatch<M>::operator=(
other._count.store(count, ::std::memory_order_relaxed);
Promise<size_t, M> promise = ::std::move(_promise);
_promise = ::std::move(other._promise);
other._promise = promise;
other._promise = ::std::move(promise);
return *this;
}

template <typename M>
Expand Down

0 comments on commit 662cbab

Please sign in to comment.