Skip to content

Commit

Permalink
Fix iterator traits
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Feb 6, 2025
1 parent 9df7a86 commit d52cf58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions thrust/testing/scan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,16 @@ struct iterator_traits<only_set_when_expected_it>
};
THRUST_NAMESPACE_END

namespace std
{
template <>
struct iterator_traits<only_set_when_expected_it>
{
using value_type = long long;
using reference = only_set_when_expected_it;
};
} // namespace std

void TestInclusiveScanWithBigIndexesHelper(int magnitude)
{
thrust::constant_iterator<long long> begin(1);
Expand Down

0 comments on commit d52cf58

Please sign in to comment.