diff --git a/Polynomial/include/CGAL/Polynomial/Real_embeddable_traits.h b/Polynomial/include/CGAL/Polynomial/Real_embeddable_traits.h index 99b87795e3c..a365b7eb77d 100644 --- a/Polynomial/include/CGAL/Polynomial/Real_embeddable_traits.h +++ b/Polynomial/include/CGAL/Polynomial/Real_embeddable_traits.h @@ -28,73 +28,72 @@ CGAL_BEGIN_NAMESPACE // TODO: Polynomials aren't Real_embeddable! But for debugging and testing // reasons, the real embeddable functors are provided. template< class NT > class Real_embeddable_traits< Polynomial > - : public Real_embeddable_traits_base< Polynomial > { - public: - -// typedef typename Real_embeddable_traits::Is_real_embeddable -// Is_real_embeddable; + : public Real_embeddable_traits_base< Polynomial > { +public: typedef Tag_false Is_real_embeddable; class Abs { - public: + public: typedef Polynomial argument_type; typedef Polynomial result_type; Polynomial operator()( const Polynomial& x ) const { - return x.abs(); + return x.abs(); } }; class Sign { - public: + public: typedef Polynomial argument_type; typedef CGAL::Sign result_type; CGAL::Sign operator()( const Polynomial& x ) const { - return x.sign(); + return x.sign(); } }; class Compare { - public: + public: typedef Polynomial first_argument_type; typedef Polynomial second_argument_type; typedef CGAL::Comparison_result result_type; - CGAL::Comparison_result operator()( const Polynomial& x, - const Polynomial& y ) const { - return x.compare(y); + + CGAL::Comparison_result operator()( + const Polynomial& x, + const Polynomial& y ) const { + return x.compare(y); } CGAL_IMPLICIT_INTEROPERABLE_BINARY_OPERATOR_WITH_RT( Polynomial, - CGAL::Comparison_result ); - + CGAL::Comparison_result ) }; class To_double { - public: + public: typedef typename Real_embeddable_traits::To_double NT_to_double; typedef Polynomial result_type; typedef Polynomial argument_type; result_type operator()( const Polynomial& x ) const { CGAL_precondition(x.degree() >= 0); NT_to_double to_double; - return result_type(::boost::make_transform_iterator(x.begin(),to_double), - ::boost::make_transform_iterator(x.end() ,to_double)); + return result_type( + ::boost::make_transform_iterator(x.begin(),to_double), + ::boost::make_transform_iterator(x.end() ,to_double)); } }; class To_interval { - public: + public: typedef typename Real_embeddable_traits::To_interval NT_to_interval; typedef Polynomial result_type; typedef Polynomial argument_type; result_type operator()( const Polynomial& x ) const { CGAL_precondition( x.degree() >= 0 ); NT_to_interval to_interval; - return result_type(::boost::make_transform_iterator(x.begin(),to_interval), - ::boost::make_transform_iterator(x.end() ,to_interval)); + return result_type( + ::boost::make_transform_iterator(x.begin(),to_interval), + ::boost::make_transform_iterator(x.end() ,to_interval)); } }; - }; CGAL_END_NAMESPACE