Skip to content

Commit

Permalink
Removed unnecessary (actually erroneous) member function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
efifogel committed Jun 2, 2023
1 parent da710d6 commit 0477dfe
Showing 1 changed file with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1106,32 +1106,7 @@ class Arr_polycurve_basic_traits_2 {
// Generic implementation
using Approximate_number_type = void;
using Approximate_point_2 = void;

struct Approximate_2 {
/*! Obtain an approximation of a point coordinate.
* \param p the exact point.
* \param i the coordinate index (either 0 or 1).
* \pre i is either 0 or 1.
* \return An approximation of p's x-coordinate (if i == 0), or an
* approximation of p's y-coordinate (if i == 1).
*/
Approximate_number_type operator()(const Point_2&, int) const
{ CGAL_error_msg("The subtraits does not define Approximate_2!"); }

/*! Obtain an approximation of a point.
*/
Approximate_point_2 operator()(const Point_2&) const
{ CGAL_error_msg("The subtraits does not define Approximate_2!"); }

/*! Obtain an approximation of an \f$x\f$-monotone curve.
*/
template <typename OutputIterator>
OutputIterator operator()(const X_monotone_curve_2&, double,
OutputIterator oi, bool = true) const {
CGAL_error_msg("The subtraits does not define Approximate_2!");
return oi;
}
};
using Approximate_2 = void;
};

template <typename T>
Expand Down

0 comments on commit 0477dfe

Please sign in to comment.