Skip to content

Commit

Permalink
Suppress warning on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 9, 2025
1 parent 5814dda commit d82c06c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thrust/thrust/system/cuda/detail/future.inl
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,9 @@ template <typename... Dependencies, std::size_t I0, std::size_t... Is>
_CCCL_HOST acquired_stream
acquire_stream_impl(int device_id, std::tuple<Dependencies...>& deps, index_sequence<I0, Is...>) noexcept
{
auto tr = try_acquire_stream(device_id, std::get<I0>(deps));
_CCCL_SUPPRESS_DEPRECATED_PUSH // for thrust::optional (MSVC warnings here)
auto tr = try_acquire_stream(device_id, std::get<I0>(deps));
_CCCL_SUPPRESS_DEPRECATED_POP

if (tr)
{
Expand Down

0 comments on commit d82c06c

Please sign in to comment.