add missing const

This commit is contained in:
Sébastien Loriot 2020-05-15 11:19:35 +02:00
parent 1008eaed39
commit 80da7ff111
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ int main() {
std::cout << "The first 5 nearest neighbours with positive x-coord are: " << std::endl;
for (int j=0; (j < 5)&&(it!=end); ++j,++it)
std::cout << (*it).first << " at squared distance = " << (*it).second << std::endl;
std::cout << (*it).first << " at squared distance = " << it->second << std::endl;
return 0;
}

View File

@ -147,7 +147,7 @@ namespace CGAL {
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* pointer;
typedef const Point_with_transformed_distance& reference;
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;

View File

@ -480,7 +480,7 @@ namespace CGAL {
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* pointer;
typedef const Point_with_transformed_distance& reference;
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;