Closed jsyjr closed 1 year ago
Is it int
or std::ptrdiff_t
(aka iterator_traits::difference_type
)? Note that size_type
is unsigned so it is actually unsuitable for operator+
.
Learn something new everyday. Thanks for the quick reply.
Glad it helped!
I have not investigated other iterators nor other containers but would expect the issue to be relatively widespread.