Don't allow non-random-access-traversal iterators to be subtracted.

[SVN r22121]
This commit is contained in:
Dave Abrahams
2004-02-01 22:11:47 +00:00
parent 62c993978a
commit d3daa47561

View File

@ -127,7 +127,7 @@ namespace detail
{
static Difference distance(Incrementable1 x, Incrementable2 y)
{
return boost::detail::distance(x, y);
return y - x;
}
};