Use int as difference_type as it may only be in [-2, 2]

This commit is contained in:
Andreas Fabri 2013-02-07 16:01:48 +01:00
parent b2ec8d925b
commit d4b251c8fd
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public:
typedef std::random_access_iterator_tag iterator_category;
typedef FT value_type;
typedef std::ptrdiff_t difference_type;
typedef int difference_type;
typedef const value_type& reference;
typedef const value_type* pointer;
@ -68,7 +68,7 @@ public:
if (const P* const* p = boost::get<const P*>(&var))
return (*p)->cartesian(index);
const V* const* v = boost::get<const V*>(&var);
CGAL_assertion(v);
CGAL_assertion(v != 0);
return (*v)->cartesian(index);
}

View File

@ -47,7 +47,7 @@ public:
typedef std::random_access_iterator_tag iterator_category;
typedef FT value_type;
typedef std::ptrdiff_t difference_type;
typedef int difference_type;
typedef const value_type& reference;
typedef const value_type* pointer;