From 6e8926ed51ec92a5f263b88324668b3fb0dec494 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Wed, 15 Jan 2025 14:38:41 +0100 Subject: [PATCH] Make discard_iterator value_type void Fixes: #3399 --- thrust/thrust/iterator/detail/discard_iterator_base.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/thrust/thrust/iterator/detail/discard_iterator_base.h b/thrust/thrust/iterator/detail/discard_iterator_base.h index 7f4e637bbc4..f0f781b5607 100644 --- a/thrust/thrust/iterator/detail/discard_iterator_base.h +++ b/thrust/thrust/iterator/detail/discard_iterator_base.h @@ -43,10 +43,8 @@ namespace detail template struct discard_iterator_base { - // XXX value_type should actually be void - // but this interferes with zip_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;