diff --git a/include/async/promise.hpp b/include/async/promise.hpp index a73ab16..8689fbb 100644 --- a/include/async/promise.hpp +++ b/include/async/promise.hpp @@ -199,7 +199,7 @@ struct future { } future(const future &other) - : state_{other.state}, alloc_{other.alloc} { + : state_{other.state_}, alloc_{other.alloc_} { if (state_) state_->ref(); }