mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-22 00:52:08 +02:00
Don't allow non-random-access-traversal iterators to be subtracted.
[SVN r22121]
This commit is contained in:
@ -127,7 +127,7 @@ namespace detail
|
|||||||
{
|
{
|
||||||
static Difference distance(Incrementable1 x, Incrementable2 y)
|
static Difference distance(Incrementable1 x, Incrementable2 y)
|
||||||
{
|
{
|
||||||
return boost::detail::distance(x, y);
|
return y - x;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user