diff --git a/src/mongo/util/future.h b/src/mongo/util/future.h index 04ab91f..5d60313 100644 --- a/src/mongo/util/future.h +++ b/src/mongo/util/future.h @@ -1628,12 +1628,12 @@ using FutureContinuationResult = template inline Future Promise::getFuture() noexcept { _sharedState->threadUnsafeIncRefCountTo(2); - return Future(boost::intrusive_ptr>(_sharedState.get(), /*add ref*/ false)); + return Future(boost::intrusive_ptr>(_sharedState.get(), /*add ref*/ false)); } template inline void Promise::setFrom(Future&& future) noexcept { - setImpl([&](boost::intrusive_ptr>&& sharedState) { + setImpl([&](boost::intrusive_ptr>&& sharedState) { future.propagateResultTo(sharedState.get()); }); } @@ -1654,7 +1654,7 @@ template if (!_immediate) return SharedSemiFuture(std::move(_shared)); - auto shared = make_intrusive>(); + auto shared = future_details::make_intrusive>(); shared->emplaceValue(std::move(*_immediate)); return SharedSemiFuture(std::move(shared)); }