diff --git a/thrust/examples/expand.cu b/thrust/examples/expand.cu index 350ec1d4099..c735d62bbcb 100644 --- a/thrust/examples/expand.cu +++ b/thrust/examples/expand.cu @@ -20,7 +20,7 @@ template OutputIterator expand(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator output) { - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference; difference_type input_size = thrust::distance(first1, last1); difference_type output_size = thrust::reduce(first1, last1); diff --git a/thrust/examples/repeated_range.cu b/thrust/examples/repeated_range.cu index debd13c58f9..61fd26573f2 100644 --- a/thrust/examples/repeated_range.cu +++ b/thrust/examples/repeated_range.cu @@ -21,7 +21,7 @@ template class repeated_range { public: - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference; struct repeat_functor { diff --git a/thrust/examples/strided_range.cu b/thrust/examples/strided_range.cu index dbdbac82d62..7c6fc0d7596 100644 --- a/thrust/examples/strided_range.cu +++ b/thrust/examples/strided_range.cu @@ -21,7 +21,7 @@ template class strided_range { public: - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference; struct stride_functor { diff --git a/thrust/examples/tiled_range.cu b/thrust/examples/tiled_range.cu index 220591dc8f5..3b3a687c6c8 100644 --- a/thrust/examples/tiled_range.cu +++ b/thrust/examples/tiled_range.cu @@ -21,7 +21,7 @@ template class tiled_range { public: - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference; struct tile_functor {