Convex_hull_2: incorrect/inconsistent template declaration of lower_hull_points_2() and upper_hull_points_2() in documentation
Package: Convex_hull_2 File: Convex_hull_2/doc/Convex_hull_2/CGAL/convex_hull_2.h
Description:
The documentation declarations of lower_hull_points_2() and upper_hull_points_2() are inconsistent with the actual implementation.
At lines 135–139 (and again at 198–202 for upper_hull_points_2):
template <class InputIterator, class OutputIterator>
OutputIterator
lower_hull_points_2(InputIterator first, InputIterator beyond,
OutputIterator result,
const Traits& ch_traits = Default_traits );
Traits is used as a type and Default_traits as a default value, but neither is declared in the template parameter list, and Default_traits does not exist anywhere in the codebase.
The real implementation in Convex_hull_2/include/CGAL/convex_hull_2.h (line 133) actually provides TWO separate overloads:
template <class InputIterator, class OutputIterator, class Traits>
OutputIterator
lower_hull_points_2(InputIterator first, InputIterator last,
OutputIterator result, const Traits& ch_traits);
template <class ForwardIterator, class OutputIterator>
OutputIterator
lower_hull_points_2(ForwardIterator first, ForwardIterator last,
OutputIterator result); // deduces kernel internally
The doc file incorrectly merged these two overloads into one malformed declaration. Same issue applies to upper_hull_points_2.
Expected: The doc stub should declare both overloads separately (matching convex_hull_2()'s own doc pattern just above it in the same file, which does this correctly), or at minimum have a properly declared class Traits template parameter with a valid default.