Skip to content

Commit

Permalink
fix: add future<>::dtor()
Browse files Browse the repository at this point in the history
  • Loading branch information
yulon committed Jul 27, 2023
1 parent 50bb122 commit 767ad3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/rua/sync/future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ class future : private enable_await_operators {
std::is_convertible<Promise &, promise<PromiseValue> &>::value>>
future(Promise &prm) : $v(&static_cast<promise<PromiseValue> &>(prm)) {}

~future() {
reset();
}

template <
typename U,
typename = enable_if_t<
Expand Down

0 comments on commit 767ad3b

Please sign in to comment.