diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_curve_kernel_2.h b/Algebraic_kernel_d/include/CGAL/Algebraic_curve_kernel_2.h index 3ef31b05ca4..97f699e3202 100755 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_curve_kernel_2.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_curve_kernel_2.h @@ -24,9 +24,8 @@ #include #include -#include - #include +#include #include #include #include @@ -269,26 +268,19 @@ public: CGAL2NiX_converter cvt; return Self::get_curve_cache()(cvt(f)); } - - private: - //! \c pointer to Algebraic_curve_kernel_2 (for caching issues) - //Self *_m_pkernel_2; }; CGAL_Algebraic_Kernel_cons(Construct_curve_2, construct_curve_2_object); //! type of a curve point typedef CGALi::Xy_coordinate_2 Xy_coordinate_2; - //! type of algebraic real traits - + //! traits class for \c X_coordinate typedef CGALi::Algebraic_real_traits - X_real_traits_1; + X_real_traits_1; - typedef CGALi::Algebraic_real_traits Y_real_traits_1; + //! traits class for \c Xy_coorinate_2 + typedef CGALi::Algebraic_real_traits Y_real_traits_1; - - //! \brief comparison of x-coordinates struct Compare_x_2 : public Binary_function int operator()( const Curve_2& c, OutputIterator1 fit, OutputIterator2 mit ) const { + typename Polynomial_traits_2:: Square_free_factorization_up_to_constant_factor factorize; NiX2CGAL_converter cvt; CGAL2NiX_converter cvt_back; std::vector factors; + int n_factors = factorize(cvt(c.f()), std::back_inserter(factors), mit); Construct_curve_2 cc_2;