mirror of https://github.com/CGAL/cgal
Use int as difference_type as it may only be in [-2, 2]
This commit is contained in:
parent
b2ec8d925b
commit
d4b251c8fd
|
|
@ -49,7 +49,7 @@ public:
|
||||||
|
|
||||||
typedef std::random_access_iterator_tag iterator_category;
|
typedef std::random_access_iterator_tag iterator_category;
|
||||||
typedef FT value_type;
|
typedef FT value_type;
|
||||||
typedef std::ptrdiff_t difference_type;
|
typedef int difference_type;
|
||||||
typedef const value_type& reference;
|
typedef const value_type& reference;
|
||||||
typedef const value_type* pointer;
|
typedef const value_type* pointer;
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ public:
|
||||||
if (const P* const* p = boost::get<const P*>(&var))
|
if (const P* const* p = boost::get<const P*>(&var))
|
||||||
return (*p)->cartesian(index);
|
return (*p)->cartesian(index);
|
||||||
const V* const* v = boost::get<const V*>(&var);
|
const V* const* v = boost::get<const V*>(&var);
|
||||||
CGAL_assertion(v);
|
CGAL_assertion(v != 0);
|
||||||
return (*v)->cartesian(index);
|
return (*v)->cartesian(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public:
|
||||||
|
|
||||||
typedef std::random_access_iterator_tag iterator_category;
|
typedef std::random_access_iterator_tag iterator_category;
|
||||||
typedef FT value_type;
|
typedef FT value_type;
|
||||||
typedef std::ptrdiff_t difference_type;
|
typedef int difference_type;
|
||||||
typedef const value_type& reference;
|
typedef const value_type& reference;
|
||||||
typedef const value_type* pointer;
|
typedef const value_type* pointer;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue