This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Figure out what to do about counting_iterator<float> #248
Labels
type: enhancement
New feature or request.
thrust::counting_iterator<float>::difference_type
isfloat
which means it is incompatible with OpenMP.boost::counting_iterator<float>::difference_type
is integral, but apparently not by design.boost::counting_iterator<float>
fails some requirements for random access iterators:This program outputs:
It's not consistent for the difference between the two iterators to be
0
and for the two iterators to be unequal.thrust::counting_iterator<float>::difference_type
could be integral, but for this to be consistent, its equality should be based on difference. This would implyWhich would introduce confusion. Moreover, it's not clear what to do for integers which not representable in floating point.
Reported here.
The text was updated successfully, but these errors were encountered: