diff --git a/thrust/thrust/system/cuda/detail/future.inl b/thrust/thrust/system/cuda/detail/future.inl index 4d6c97c048..9df16697cd 100644 --- a/thrust/thrust/system/cuda/detail/future.inl +++ b/thrust/thrust/system/cuda/detail/future.inl @@ -998,7 +998,9 @@ template _CCCL_HOST acquired_stream acquire_stream_impl(int device_id, std::tuple& deps, index_sequence) noexcept { - auto tr = try_acquire_stream(device_id, std::get(deps)); + _CCCL_SUPPRESS_DEPRECATED_PUSH // for thrust::optional (MSVC warnings here) + auto tr = try_acquire_stream(device_id, std::get(deps)); + _CCCL_SUPPRESS_DEPRECATED_POP if (tr) {