mirror of https://github.com/CGAL/cgal
Merge pull request #4725 from sloriot/SS-missing_const_pointer
Add missing const
This commit is contained in:
commit
c1ffa15645
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue