martinmoene / ring-span-lite

ring-span lite - A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
154 stars 12 forks source link

Make ring_iterator::operator- a member, templated on is_const #5

Closed martinmoene closed 7 years ago

martinmoene commented 7 years ago
template< bool C >
difference_type operator-( ring_iterator<RS, C> const & rhs) const nsrs_noexcept;

And add:

friend class ring_iterator<RS, !is_const>;
martinmoene commented 7 years ago
friend class ring_iterator<RS, !is_const>;

added in ed8ba65eda7db56a0b44842b26c67e0c9c2dde84