File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4646#include < thrust/type_traits/integer_sequence.h>
4747
4848#include < cuda/std/__iterator/advance.h>
49+ #include < cuda/std/__iterator/distance.h>
4950#include < cuda/std/__type_traits/conditional.h>
5051#include < cuda/std/__type_traits/enable_if.h>
5152#include < cuda/std/__type_traits/is_constructible.h>
@@ -302,7 +303,7 @@ class _CCCL_DECLSPEC_EMPTY_BASES zip_iterator : public detail::make_zip_iterator
302303 inline _CCCL_HOST_DEVICE typename super_t ::difference_type
303304 distance_to (const zip_iterator<OtherIteratorTuple>& other) const
304305 {
305- return get<0 >(other. get_iterator_tuple ()) - get<0 >(get_iterator_tuple ());
306+ return :: cuda::std::distance ( get<0 >(get_iterator_tuple ()), get<0 >(other. get_iterator_tuple () ));
306307 }
307308
308309 // The iterator tuple.
You can’t perform that action at this time.
0 commit comments