iota_view<W,Bound>'s sentinel and iterator do no satisfy SizedSentinel when SizedSentinel<Bound,I> is satisfied
ericniebler opened this issue · 2 comments
ericniebler commented
Perhaps define something like a differenceable
concept -- or just used SizedSentinel
directly -- and use it to define an operator-
friend function in class iota_view::sentinel
.
ericniebler commented
Fixed by p1522.
frederick-vs-ja commented
Currently operator-
s for iterator/sentinel types of iota_view<I1, I2>
, where I1
and I2
are different integer types, are not enabled.
Should we also enable these operator-
s to improve consistency with iota_view::size
?
I've tried to submit an LWG issue (LWG3609) for this. What do you think about it?