forked from boostorg/iterator
Don't allow non-random-access-traversal iterators to be subtracted.
[SVN r22121]
This commit is contained in:
1 parent
62c993978a
commit
d3daa47561
1 file changed
+1
-1
@@ -127,7 +127,7 @@ namespace detail
|
||||
{
|
||||
static Difference distance(Incrementable1 x, Incrementable2 y)
|
||||
{
|
||||
return boost::detail::distance(x, y);
|
||||
return y - x;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user