diff --git a/thrust/testing/scan.cu b/thrust/testing/scan.cu index 8e8985dde1c..2de233d7eaf 100644 --- a/thrust/testing/scan.cu +++ b/thrust/testing/scan.cu @@ -574,6 +574,16 @@ struct iterator_traits }; THRUST_NAMESPACE_END +namespace std +{ +template <> +struct iterator_traits +{ + using value_type = long long; + using reference = only_set_when_expected_it; +}; +} // namespace std + void TestInclusiveScanWithBigIndexesHelper(int magnitude) { thrust::constant_iterator begin(1);