diff --git a/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h b/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h index adcebe0699e..232edb6ab4f 100644 --- a/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h +++ b/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h @@ -101,6 +101,15 @@ class Polynomial_algebraic_structure_traits_base< POLY, return POLY( x.unit_part() ); } }; + + class Is_zero + : public std::unary_function< POLY, bool > { + public: + bool operator()( const POLY& x ) const { + return x.is_zero(); + } + }; + }; // Extend to the case that the coefficient range is a IntegralDomain (with div)