diff --git a/Orthtree/include/CGAL/Orthtree.h b/Orthtree/include/CGAL/Orthtree.h index 9ca83def333..fdcb5e647c4 100644 --- a/Orthtree/include/CGAL/Orthtree.h +++ b/Orthtree/include/CGAL/Orthtree.h @@ -705,7 +705,7 @@ public: \warning Nearest neighbor searches requires `GeomTraits` to be a model of `CollectionPartitioningOrthtreeTraits`. */ template - auto nearest_neighbors(const Sphere& query, OutputIterator output) const -> std::enable_if_t { + auto neighbors_in_radius(const Sphere& query, OutputIterator output) const -> std::enable_if_t { return nearest_k_neighbors_in_radius(query, (std::numeric_limits::max)(), output); }