mirror of https://github.com/CGAL/cgal
iterator of Incremental_nn: add missing const to operator* + types required by std algo
itertator of Ortho_incremental_nn: the iterator tag was incorrect: forward -> input
This commit is contained in:
parent
97ddcd58ac
commit
ece84b02fd
|
|
@ -142,9 +142,14 @@ namespace CGAL {
|
|||
public:
|
||||
|
||||
typedef std::input_iterator_tag iterator_category;
|
||||
typedef Point_with_transformed_distance value_type;
|
||||
typedef Point_with_transformed_distance value_type;
|
||||
typedef Point_with_transformed_distance* pointer;
|
||||
typedef const Point_with_transformed_distance& reference;
|
||||
typedef std::size_t size_type;
|
||||
typedef std::ptrdiff_t difference_type;
|
||||
typedef int distance_type;
|
||||
|
||||
|
||||
|
||||
class Iterator_implementation;
|
||||
Iterator_implementation *ptr;
|
||||
|
||||
|
|
@ -184,7 +189,7 @@ namespace CGAL {
|
|||
}
|
||||
|
||||
Point_with_transformed_distance&
|
||||
operator* ()
|
||||
operator* () const
|
||||
{
|
||||
return *(*ptr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ namespace CGAL {
|
|||
|
||||
public:
|
||||
|
||||
typedef std::forward_iterator_tag iterator_category;
|
||||
typedef std::input_iterator_tag iterator_category;
|
||||
typedef Point_with_transformed_distance value_type;
|
||||
typedef Point_with_transformed_distance* pointer;
|
||||
typedef const Point_with_transformed_distance& reference;
|
||||
|
|
|
|||
Loading…
Reference in New Issue