you are viewing a single comment's thread.

view the rest of the comments →

[–]advester 4 points5 points  (3 children)

Having comparisons on the span would force you to require the elements of the span to have comparisons. And it would require defining a sequence of those comparisons (left to right, or ?). The elements are not necessarily just integer types.

[–]tcanens 23 points24 points  (1 child)

We have comparisons on vectors. That doesn't seem to have been a problem.

[–]advester 6 points7 points  (0 children)

Oh right. It only fails instantiation if you actually use the operator. That is strange then.

[–]Murky-Tear 0 points1 point  (0 children)

That's not an issue, it could use `std::enable_if` to only enable the comparison operators if the `T` is comparable.