diff --git a/Packages/Number_types/include/CGAL/number_type_basic.h b/Packages/Number_types/include/CGAL/number_type_basic.h index 096df6a4a80..7c81708f861 100644 --- a/Packages/Number_types/include/CGAL/number_type_basic.h +++ b/Packages/Number_types/include/CGAL/number_type_basic.h @@ -55,6 +55,13 @@ NT min(const NT& x, const NT& y) { return (y < x) ? y : x; } +template +inline +NT +// const NT& +min(const NT& x, const NT& y, const Comp& c) +{ return c(x, y) ? x : y; } + template inline NT @@ -62,6 +69,13 @@ NT max(const NT& x, const NT& y) { return (x < y) ? y : x; } +template +inline +NT +// const NT& +max(const NT& x, const NT& y, const Comp& c) +{ return c(x, y) ? y : x; } + #endif CGAL_END_NAMESPACE