Skip to content

Commit

Permalink
Make discard_iterator value_type void
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 15, 2025
1 parent 048b2bd commit 6e8926e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions thrust/thrust/iterator/detail/discard_iterator_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ namespace detail
template <typename System>
struct discard_iterator_base
{
// XXX value_type should actually be void
// but this interferes with zip_iterator<discard_iterator>
using value_type = any_assign;
using reference = any_assign&;
using value_type = void;
using reference = void;
using incrementable = std::ptrdiff_t;

using base_iterator = typename thrust::counting_iterator<incrementable, System, thrust::random_access_traversal_tag>;
Expand Down

0 comments on commit 6e8926e

Please sign in to comment.