Merge pull request #4725 from sloriot/SS-missing_const_pointer

Add missing const
This commit is contained in:
Laurent Rineau 2020-05-18 12:22:15 +02:00
commit c1ffa15645
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; std::cout << "The first 5 nearest neighbours with positive x-coord are: " << std::endl;
for (int j=0; (j < 5)&&(it!=end); ++j,++it) 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; return 0;
} }

View File

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

View File

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