Skip to content

Commit

Permalink
value
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Feb 28, 2025
1 parent f6205c1 commit 2a91bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thrust/thrust/iterator/zip_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ struct make_zip_iterator_base<::cuda::std::tuple<Its...>>
{
if constexpr ((::cuda::std::is_void_v<ValueTypes> || ...))
{
return; // void
return ::cuda::std::type_identity<void>{};
}
else
{
// we use if constexpr to discard instantiating a tuple<... void ...>, which is ill-formed
return ::cuda::std::tuple<ValueTypes...>{};
return ::cuda::std::type_identity<::cuda::std::tuple<ValueTypes...>>{};
}
}
using value_type = decltype(make_value_type<it_value_t<Its>...>());
using value_type = typename decltype(make_value_type<it_value_t<Its>...>())::type;

// Difference type is the first iterator's difference type
using difference_type = it_difference_t<::cuda::std::tuple_element_t<0, ::cuda::std::tuple<Its...>>>;
Expand Down

0 comments on commit 2a91bb6

Please sign in to comment.