diff --git a/google/cloud/internal/future_impl.h b/google/cloud/internal/future_impl.h index 6e7e1c6f5fbcf..23fb11151f795 100644 --- a/google/cloud/internal/future_impl.h +++ b/google/cloud/internal/future_impl.h @@ -483,7 +483,7 @@ class future_shared_state final { // NOLINT(readability-identifier-naming) std::unique_ptr> continuation_; // Allow users "cancel" the future with the given callback. - std::atomic cancelled_ = ATOMIC_VAR_INIT(false); + std::atomic cancelled_{false}; std::function cancellation_callback_; };