[grahamConvexHull] Using dim==3 causes stack overflow due to infinite recursion
Calling
grahamConvexHull<3>(points);
Causes a stack over flow because
template<int dim, class Points>
Points grahamConvexHull(const Points& points)
{
auto copyPoints = points;
return grahamConvexHull<dim>(copyPoints);
}
will call itself infinitely since there is no template specialization for dim != 2.
This should be prevented by a static_assert.
Edited by Kilian Weishaupt