diff --git a/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h b/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h index 730150c5540..71db5be69b8 100644 --- a/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h +++ b/Algebraic_foundations/include/CGAL/Algebraic_structure_traits.h @@ -220,7 +220,7 @@ class Algebraic_structure_traits_base< Type_, // Default implementation of Divides functor for unique factorization domains // x divides y if gcd(y,x) equals x up to inverses class Divides - : public std::binary_function{ + : public CGAL::binary_function{ public: bool operator()( const Type& x, const Type& y) const { typedef CGAL::Algebraic_structure_traits AST; @@ -256,7 +256,7 @@ class Algebraic_structure_traits_base< Type_, // maps to \c Div by default. class Integral_division - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( @@ -278,7 +278,7 @@ class Algebraic_structure_traits_base< Type_, // Algorithm from NiX/euclids_algorithm.h class Gcd - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( @@ -371,7 +371,7 @@ class Algebraic_structure_traits_base< Type_, // based on \c Div_mod. class Div - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -389,7 +389,7 @@ class Algebraic_structure_traits_base< Type_, // based on \c Div_mod. class Mod - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -407,7 +407,7 @@ class Algebraic_structure_traits_base< Type_, // Divides for Euclidean Ring class Divides - : public std::binary_function{ + : public CGAL::binary_function{ public: bool operator()( const Type& x, const Type& y) const { typedef Algebraic_structure_traits AST; @@ -455,7 +455,7 @@ class Algebraic_structure_traits_base< Type_, Field_tag > }; // maps to \c operator/ by default. class Integral_division - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -486,7 +486,7 @@ class Algebraic_structure_traits_base< Type_, Field_tag > // returns always true // \pre: x != 0 class Divides - : public std::binary_function< Type, Type, bool > { + : public CGAL::binary_function< Type, Type, bool > { public: bool operator()( const Type& CGAL_precondition_code(x), const Type& /* y */) const { CGAL_precondition_code( typedef Algebraic_structure_traits AST); @@ -522,7 +522,7 @@ class Algebraic_structure_traits_base< Type_, typedef Field_with_sqrt_tag Algebraic_category; struct Is_square - :public std::binary_function + :public CGAL::binary_function { bool operator()(const Type& ) const {return true;} bool operator()( @@ -579,7 +579,7 @@ class Algebraic_structure_traits_base< Type_, namespace INTERN_AST { template< class Type > class Div_per_operator - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -592,7 +592,7 @@ namespace INTERN_AST { template< class Type > class Mod_per_operator - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -605,7 +605,7 @@ namespace INTERN_AST { template< class Type > class Is_square_per_sqrt - : public std::binary_function< Type, Type&, + : public CGAL::binary_function< Type, Type&, bool > { public: bool operator()( const Type& x, diff --git a/Algebraic_foundations/include/CGAL/Real_embeddable_traits.h b/Algebraic_foundations/include/CGAL/Real_embeddable_traits.h index d0157464b2e..828eb9ec069 100644 --- a/Algebraic_foundations/include/CGAL/Real_embeddable_traits.h +++ b/Algebraic_foundations/include/CGAL/Real_embeddable_traits.h @@ -134,7 +134,7 @@ public: //! The generic \c Compare functor implementation uses two comparisons. class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: //! the function call. diff --git a/Algebraic_foundations/include/CGAL/number_utils_classes.h b/Algebraic_foundations/include/CGAL/number_utils_classes.h index 005e01a7643..daaf16063ff 100644 --- a/Algebraic_foundations/include/CGAL/number_utils_classes.h +++ b/Algebraic_foundations/include/CGAL/number_utils_classes.h @@ -101,7 +101,7 @@ struct Is_zero : namespace internal { template struct Compare_base: public Compare {}; template struct Compare_base - :public std::binary_function< NT, NT, Comparison_result > { + :public CGAL::binary_function< NT, NT, Comparison_result > { Comparison_result operator()( const NT& x, const NT& y) const { if (x < y) return SMALLER; diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_curve_kernel_2.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_curve_kernel_2.h index 9273c11f2db..dcd0483c835 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_curve_kernel_2.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_curve_kernel_2.h @@ -436,7 +436,7 @@ public: * caching is used when appropriate */ class Construct_curve_pair_2 : - public std::binary_function { public: @@ -669,7 +669,7 @@ public: compute_polynomial_y_2_object); - class Isolate_x_2 : public std::binary_function > { @@ -692,7 +692,7 @@ public: CGAL_Algebraic_Kernel_cons(Isolate_x_2, isolate_x_2_object); - class Isolate_y_2 : public std::binary_function > { @@ -938,7 +938,7 @@ public: #endif class Approximate_absolute_x_2 - : public std::binary_function >{ + : public CGAL::binary_function >{ public: @@ -961,7 +961,7 @@ public: approximate_absolute_x_2_object); class Approximate_relative_x_2 - : public std::binary_function >{ + : public CGAL::binary_function >{ public: @@ -983,7 +983,7 @@ public: approximate_relative_x_2_object); class Approximate_absolute_y_2 - : public std::binary_function >{ + : public CGAL::binary_function >{ public: @@ -1013,7 +1013,7 @@ public: approximate_absolute_y_2_object); class Approximate_relative_y_2 - : public std::binary_function >{ + : public CGAL::binary_function >{ public: @@ -1164,8 +1164,8 @@ public: //! \brief comparison of x-coordinates class Compare_x_2 : - public std::binary_function { + public CGAL::binary_function { public: @@ -1257,7 +1257,7 @@ public: * If possible, it is recommended to avoid this functor for efficiency.} */ class Compare_y_2 : - public std::binary_function< Algebraic_real_2, Algebraic_real_2, + public CGAL::binary_function< Algebraic_real_2, Algebraic_real_2, Comparison_result > { public: @@ -1369,7 +1369,7 @@ public: * to have equal x-coordinates, thus only the y-coordinates are compared. */ class Compare_xy_2 : - public std::binary_function { public: @@ -1529,7 +1529,7 @@ public: * the two polynomials \c f and \c g are coprime. */ class Has_finite_number_of_intersections_2 : - public std::binary_function< Polynomial_2, Polynomial_2, bool > { + public CGAL::binary_function< Polynomial_2, Polynomial_2, bool > { public: @@ -1800,7 +1800,7 @@ public: * In pariticular, each singular point is x-critical. */ class X_critical_points_2 : - public std::binary_function< Curve_analysis_2, + public CGAL::binary_function< Curve_analysis_2, std::iterator, std::iterator > { @@ -1879,7 +1879,7 @@ public: * In pariticular, each singular point is y-critical. */ class Y_critical_points_2 : - public std::binary_function< Curve_analysis_2, + public CGAL::binary_function< Curve_analysis_2, std::iterator, std::iterator > { @@ -1974,7 +1974,7 @@ public: // Overload the Sign_at_1 functor, to enable filter steps in the // Curve analysis in a coherent way class Sign_at_1 - : public::std::binary_function { + : public::CGAL::binary_function { public: @@ -2051,7 +2051,7 @@ public: * curve. Returns a value convertible to \c CGAL::Sign */ class Sign_at_2 : - public std::binary_function { + public CGAL::binary_function { public: @@ -2147,7 +2147,7 @@ public: CGAL_Algebraic_Kernel_pred(Sign_at_2, sign_at_2_object); class Is_zero_at_2 - : public std::binary_function { + : public CGAL::binary_function { public: @@ -2491,7 +2491,7 @@ public: CGAL_Algebraic_Kernel_cons(Solve_2, solve_2_object); class Number_of_solutions_2 - : public std::binary_function { + : public CGAL::binary_function { public: @@ -2517,7 +2517,7 @@ public: // Functor used to evaluate a Polynomial_2 in a Bound, up to a // constant factor class Evaluate_utcf_2 - : public std::binary_function { + : public CGAL::binary_function { public: diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h index d237c83dfa0..bfce9785f2e 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Algebraic_real_d_1.h @@ -384,7 +384,7 @@ public: typedef internal::Algebraic_real_d_1< Coefficient, Rational, HandlePolicy, RepClass > Type; class Compare - : public std::binary_function< Type, Type, CGAL::Comparison_result > { + : public CGAL::binary_function< Type, Type, CGAL::Comparison_result > { public: CGAL::Comparison_result operator()( const Type& a, const Type& b ) const { return a.compare( b ); } diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Curve_analysis_2.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Curve_analysis_2.h index 1e00c5ef176..91709c132fd 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Curve_analysis_2.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Curve_analysis_2.h @@ -111,7 +111,7 @@ template }; template struct Compare_for_vert_line_map - : public std::binary_function { + : public CGAL::binary_function { BOOST_MPL_HAS_XXX_TRAIT_DEF(T) BOOST_MPL_HAS_XXX_TRAIT_DEF(Handle_policy) diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Float_traits.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Float_traits.h index e2d65ae4268..fba26b0a57c 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Float_traits.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Float_traits.h @@ -80,7 +80,7 @@ public: }; struct Mul_by_pow_of_2 - : public std::binary_function< leda_bigfloat, long, leda_bigfloat> { + : public CGAL::binary_function< leda_bigfloat, long, leda_bigfloat> { leda_bigfloat operator()( const leda_bigfloat& a, long e ) const { return leda_bigfloat(a.get_significant(), a.get_exponent()+e); } @@ -111,7 +111,7 @@ public: }; struct Mul_by_pow_of_2 - : public std::binary_function + : public CGAL::binary_function < CORE::BigFloat, long , CORE::BigFloat> { CORE::BigFloat operator()( const CORE::BigFloat& a, long e ) const { return a*CORE::BigFloat::exp2(e); @@ -148,7 +148,7 @@ public: }; struct Mul_by_pow_of_2 - : public std::binary_function< Gmpfr, Gmpz, Gmpfr> { + : public CGAL::binary_function< Gmpfr, Gmpz, Gmpfr> { Gmpfr operator()( const Gmpfr& a, long e ) const { Gmpfr result(0,a.get_precision()); // just to get the prec of a if (e >= 0 ){ diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_1.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_1.h index 04632168bbb..29b0699a1d4 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_1.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_1.h @@ -38,7 +38,7 @@ namespace CGAL { namespace internal { template -struct Interval_evaluate_1 : public std::binary_function +struct Interval_evaluate_1 : public CGAL::binary_function , std::pair::Coefficient_type,Bound>::Type, diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_2.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_2.h index 43e34223941..dddf18b0714 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_2.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d/Interval_evaluate_2.h @@ -39,7 +39,7 @@ namespace CGAL { namespace internal { template -struct Interval_evaluate_2 : public std::binary_function +struct Interval_evaluate_2 : public CGAL::binary_function , std::pair::Innermost_coefficient_type,Bound>::Type, typename CGAL::Coercion_traits::Innermost_coefficient_type,Bound>::Type> > { diff --git a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d_1.h b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d_1.h index c1f30b22a48..43b6079b2cf 100644 --- a/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d_1.h +++ b/Algebraic_kernel_d/include/CGAL/Algebraic_kernel_d_1.h @@ -83,7 +83,7 @@ public: typedef Algebraic_real_1 Type; struct Bound_between - : public std::binary_function< Type, Type, Bound > { + : public CGAL::binary_function< Type, Type, Bound > { Bound operator()( const Type& t1, const Type& t2 ) const { #if CGAL_AK_DONT_USE_SIMPLE_BOUND_BETWEEN @@ -148,7 +148,7 @@ public: }; struct Approximate_absolute_1: - public std::binary_function >{ + public CGAL::binary_function >{ std::pair operator()(const Algebraic_real_1& x, int prec) const { Lower_bound lower; @@ -167,7 +167,7 @@ public: }; struct Approximate_relative_1: - public std::binary_function >{ + public CGAL::binary_function >{ std::pair operator()(const Algebraic_real_1& x, int prec) const { @@ -275,7 +275,7 @@ public: /* // TODO: Can we avoid to use this? struct Greater_compare : - public std::binary_function { + public CGAL::binary_function { bool operator() (const Algebraic_real_1& a, const Algebraic_real_1& b) const { @@ -349,7 +349,7 @@ public: struct Sign_at_1 - : public std::binary_function< Polynomial_1, Algebraic_real_1, CGAL::Sign > { + : public CGAL::binary_function< Polynomial_1, Algebraic_real_1, CGAL::Sign > { CGAL::Sign operator()( const Polynomial_1& p, const Algebraic_real_1& ar ) const { if(CGAL::is_zero(p)) return ZERO; if(CGAL::degree(p)==0) return p.sign_at(0); @@ -372,7 +372,7 @@ public: } }; struct Is_zero_at_1 - : public std::binary_function< Polynomial_1, Algebraic_real_1, bool > { + : public CGAL::binary_function< Polynomial_1, Algebraic_real_1, bool > { bool operator()( const Polynomial_1& p, const Algebraic_real_1& ar ) const { if(CGAL::is_zero(p)) return true; if( ar.low() == ar.high() ) return p.sign_at( ar.low() ) == ZERO; @@ -390,7 +390,7 @@ public: }; struct Is_coprime_1 - : public std::binary_function< Polynomial_1, Polynomial_1, bool > { + : public CGAL::binary_function< Polynomial_1, Polynomial_1, bool > { bool operator()( const Polynomial_1& p1, const Polynomial_1& p2 ) const { typename CGAL::Polynomial_traits_d< Polynomial_1 >::Total_degree total_degree; @@ -485,7 +485,7 @@ public: }; struct Compare_1 - : public std::binary_function{ @@ -530,7 +530,7 @@ public: public: - struct Isolate_1 : public std::binary_function + struct Isolate_1 : public CGAL::binary_function < Algebraic_real_1,Polynomial_1,std::pair > { public: diff --git a/Algebraic_kernel_d/include/CGAL/RS/functors_1.h b/Algebraic_kernel_d/include/CGAL/RS/functors_1.h index 2abc2c9c086..8228a09d9f8 100644 --- a/Algebraic_kernel_d/include/CGAL/RS/functors_1.h +++ b/Algebraic_kernel_d/include/CGAL/RS/functors_1.h @@ -70,7 +70,7 @@ public CGAL::unary_function{ template struct Is_coprime_1: -public std::binary_function{ +public CGAL::binary_function{ typedef Polynomial_ Polynomial; typedef Ptraits_ Ptraits; typedef typename Ptraits::Gcd_up_to_constant_factor Gcd; @@ -256,7 +256,7 @@ template class Sign_at_1: -public std::binary_function{ +public CGAL::binary_function{ // This implementation will work with any polynomial type whose // coefficient type is explicit interoperable with Gmpfi. // TODO: Make this function generic. @@ -362,7 +362,7 @@ template class Is_zero_at_1: -public std::binary_function{ +public CGAL::binary_function{ // This implementation will work with any polynomial type whose // coefficient type is explicit interoperable with Gmpfi. // TODO: Make this function generic. @@ -458,7 +458,7 @@ template struct Compare_1: -public std::binary_function{ +public CGAL::binary_function{ typedef Algebraic_ Algebraic; typedef Bound_ Bound; typedef Comparator_ Comparator; @@ -510,7 +510,7 @@ template struct Bound_between_1: -public std::binary_function{ +public CGAL::binary_function{ typedef Algebraic_ Algebraic; typedef Bound_ Bound; typedef Comparator_ Comparator; @@ -550,7 +550,7 @@ template struct Isolate_1: -public std::binary_function >{ +public CGAL::binary_function >{ typedef Polynomial_ Polynomial_1; typedef Bound_ Bound; typedef Algebraic_ Algebraic; @@ -588,7 +588,7 @@ template struct Approximate_absolute_1: -public std::binary_function >{ +public CGAL::binary_function >{ typedef Polynomial_ Polynomial_1; typedef Bound_ Bound; typedef Algebraic_ Algebraic; @@ -620,7 +620,7 @@ template struct Approximate_relative_1: -public std::binary_function >{ +public CGAL::binary_function >{ typedef Polynomial_ Polynomial_1; typedef Bound_ Bound; typedef Algebraic_ Algebraic; diff --git a/Algebraic_kernel_d/include/CGAL/RS/functors_z_1.h b/Algebraic_kernel_d/include/CGAL/RS/functors_z_1.h index 579f8f4eff9..67bb9d7e9ae 100644 --- a/Algebraic_kernel_d/include/CGAL/RS/functors_z_1.h +++ b/Algebraic_kernel_d/include/CGAL/RS/functors_z_1.h @@ -78,7 +78,7 @@ public CGAL::unary_function{ template struct Is_coprime_z_1: -public std::binary_function{ +public CGAL::binary_function{ typedef Polynomial_ Polynomial; typedef Ptraits_ Ptraits; typedef typename Ptraits::Gcd_up_to_constant_factor Gcd; @@ -284,7 +284,7 @@ template class Sign_at_z_1: -public std::binary_function{ +public CGAL::binary_function{ // This implementation will work with any polynomial type whose // coefficient type is explicit interoperable with Gmpfi. // TODO: Make this function generic. @@ -396,7 +396,7 @@ template class Is_zero_at_z_1: -public std::binary_function{ +public CGAL::binary_function{ // This implementation will work with any polynomial type whose // coefficient type is explicit interoperable with Gmpfi. // TODO: Make this function generic. @@ -500,7 +500,7 @@ template struct Compare_z_1: -public std::binary_function{ +public CGAL::binary_function{ typedef Algebraic_ Algebraic; typedef Bound_ Bound; typedef Comparator_ Comparator; @@ -552,7 +552,7 @@ template struct Bound_between_z_1: -public std::binary_function{ +public CGAL::binary_function{ typedef Algebraic_ Algebraic; typedef Bound_ Bound; typedef Comparator_ Comparator; @@ -595,7 +595,7 @@ template struct Isolate_z_1: -public std::binary_function >{ +public CGAL::binary_function >{ typedef Polynomial_ Polynomial_1; typedef ZPolynomial_ ZPolynomial_1; typedef PolConverter_ PolConverter; @@ -639,7 +639,7 @@ template struct Approximate_absolute_z_1: -public std::binary_function >{ +public CGAL::binary_function >{ typedef Polynomial_ Polynomial_1; typedef Bound_ Bound; typedef Algebraic_ Algebraic; @@ -671,7 +671,7 @@ template struct Approximate_relative_z_1: -public std::binary_function >{ +public CGAL::binary_function >{ typedef Polynomial_ Polynomial_1; typedef Bound_ Bound; typedef Algebraic_ Algebraic; diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_point_location/Td_predicates.h b/Arrangement_on_surface_2/include/CGAL/Arr_point_location/Td_predicates.h index a3dadee5253..5f66fba22a0 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_point_location/Td_predicates.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_point_location/Td_predicates.h @@ -70,7 +70,7 @@ struct Td_active_edge_item: }; template -struct Td_map_item_handle_less : public std::binary_function<_Tp, _Tp, bool> +struct Td_map_item_handle_less : public CGAL::binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x->id() < __y->id(); } diff --git a/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/Make_x_monotone_2.h b/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/Make_x_monotone_2.h index 375f196a74e..9addfd8488d 100644 --- a/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/Make_x_monotone_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/Make_x_monotone_2.h @@ -58,7 +58,7 @@ template < class CurvedKernelViaAnalysis_2, class ConstructArc_2 = typename CurvedKernelViaAnalysis_2::Construct_arc_2 > struct Make_x_monotone_2 : - public std::binary_function< typename CurvedKernelViaAnalysis_2::Curve_2, + public CGAL::binary_function< typename CurvedKernelViaAnalysis_2::Curve_2, std::iterator, std::iterator > { diff --git a/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/test/simple_models.h b/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/test/simple_models.h index 29044fc4006..e40d6c2e264 100644 --- a/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/test/simple_models.h +++ b/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/test/simple_models.h @@ -1062,7 +1062,7 @@ public: * caching is used when appropriate */ struct Construct_curve_pair_2 : - public std::binary_function { Curve_pair_analysis_2 operator() @@ -1198,7 +1198,7 @@ public: //! \brief comparison of x-coordinates struct Compare_x_2 : - public std::binary_function { Comparison_result operator()(const Algebraic_real_1& x1, @@ -1214,7 +1214,7 @@ public: //! \brief comparison of y-coordinates of two points struct Compare_y_2 : - public std::binary_function< Xy_coordinate_2, Xy_coordinate_2, + public CGAL::binary_function< Xy_coordinate_2, Xy_coordinate_2, Comparison_result > { Comparison_result operator()(const Xy_coordinate_2& xy1, @@ -1228,7 +1228,7 @@ public: //! //! \c equal_x specifies that only y-coordinates need to be compared struct Compare_xy_2 : - public std::binary_function { Comparison_result operator()(const Xy_coordinate_2& xy1, @@ -1260,7 +1260,7 @@ public: //! in case of algerbaic curves: checks whether supporting polynomials are //! coprime struct Has_finite_number_of_intersections_2 : - public std::binary_function< Curve_analysis_2, Curve_analysis_2, bool > { + public CGAL::binary_function< Curve_analysis_2, Curve_analysis_2, bool > { bool operator()(const Curve_analysis_2& c1, const Curve_analysis_2& c2) const { @@ -1376,7 +1376,7 @@ public: * returns a value convertible to \c CGAL::Sign */ struct Sign_at_2 : - public std::binary_function< Polynomial_2, Xy_coordinate_2, Sign > { + public CGAL::binary_function< Polynomial_2, Xy_coordinate_2, Sign > { Sign operator()(const Polynomial_2& p, const Xy_coordinate_2& r) const { diff --git a/Bounding_volumes/include/CGAL/Min_quadrilateral_traits_2.h b/Bounding_volumes/include/CGAL/Min_quadrilateral_traits_2.h index bb932819b70..0286d13f968 100644 --- a/Bounding_volumes/include/CGAL/Min_quadrilateral_traits_2.h +++ b/Bounding_volumes/include/CGAL/Min_quadrilateral_traits_2.h @@ -128,7 +128,7 @@ public: // new predicates struct Area_less_rectangle_2 - : public std::binary_function< Rectangle_2, Rectangle_2, bool > + : public CGAL::binary_function< Rectangle_2, Rectangle_2, bool > { RT area_numerator(const Rectangle_2& r, Cartesian_tag) const @@ -169,7 +169,7 @@ public: } }; struct Area_less_parallelogram_2 - : public std::binary_function< Parallelogram_2, + : public CGAL::binary_function< Parallelogram_2, Parallelogram_2, bool > { @@ -214,7 +214,7 @@ public: } }; struct Width_less_strip_2 - : public std::binary_function< Strip_2, Strip_2, bool > + : public CGAL::binary_function< Strip_2, Strip_2, bool > { RT width_numerator(const Strip_2& r, Cartesian_tag) const diff --git a/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h b/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h index d71798f263e..9dbe7268e4e 100644 --- a/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h +++ b/Bounding_volumes/include/CGAL/Rectangular_p_center_traits_2.h @@ -33,7 +33,7 @@ namespace CGAL { template < class A, class S > -struct Select : public std::binary_function< A, A, A > { +struct Select : public CGAL::binary_function< A, A, A > { Select() {} Select(const S& s) : s_(s) {} A operator()(const A& a, const A& b) const @@ -46,7 +46,7 @@ protected: template < class R > struct I_Signed_x_distance_2 -: public std::binary_function< +: public CGAL::binary_function< Point_2< R >, Point_2< R >, typename R::FT > { typename R::FT @@ -55,7 +55,7 @@ struct I_Signed_x_distance_2 }; template < class R > struct I_Signed_y_distance_2 -: public std::binary_function< +: public CGAL::binary_function< Point_2< R >, Point_2< R >, typename R::FT > { typename R::FT @@ -64,7 +64,7 @@ struct I_Signed_y_distance_2 }; template < class R > struct I_Infinity_distance_2 -: public std::binary_function< +: public CGAL::binary_function< Point_2< R >, Point_2< R >, typename R::FT > { typename R::FT @@ -76,7 +76,7 @@ struct I_Infinity_distance_2 template < class R > struct I_Signed_infinity_distance_2 -: public std::binary_function< +: public CGAL::binary_function< Point_2< R >, Point_2< R >, typename R::FT > { typename R::FT diff --git a/Bounding_volumes/include/CGAL/min_quadrilateral_2.h b/Bounding_volumes/include/CGAL/min_quadrilateral_2.h index 77a608385ac..4607c159586 100644 --- a/Bounding_volumes/include/CGAL/min_quadrilateral_2.h +++ b/Bounding_volumes/include/CGAL/min_quadrilateral_2.h @@ -295,7 +295,7 @@ namespace Optimisation { template < class Kernel > class Rdbmop - : public std::binary_function< Direction_2, int, Direction_2 > + : public CGAL::binary_function< Direction_2, int, Direction_2 > { typename Kernel::Construct_perpendicular_vector_2 cperpvec; typename Kernel::Construct_vector_from_direction_2 cvec; diff --git a/Bounding_volumes/test/Bounding_volumes/minimum_enclosing_quadrilateral_2_test_traits.cpp b/Bounding_volumes/test/Bounding_volumes/minimum_enclosing_quadrilateral_2_test_traits.cpp index 4d50be58319..ffc7149ebb3 100644 --- a/Bounding_volumes/test/Bounding_volumes/minimum_enclosing_quadrilateral_2_test_traits.cpp +++ b/Bounding_volumes/test/Bounding_volumes/minimum_enclosing_quadrilateral_2_test_traits.cpp @@ -39,19 +39,19 @@ struct MyTraits { }; struct Strip_2 { Point_2 pp1, pp2; Direction_2 dd; }; struct Equal_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Point_2& p, const Point_2& q) const { return p.xc == q.xc && p.yc == q.yc; } }; struct Less_xy_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Point_2& p, const Point_2& q) const { return p.xc < q.xc || (p.xc == q.xc && p.yc < q.yc); } }; struct Less_yx_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Point_2& p, const Point_2& q) const { return p.yc < q.yc || (p.yc == q.yc && p.xc < q.xc); } @@ -65,7 +65,7 @@ struct MyTraits { } }; struct Has_on_negative_side_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Line_2& l, const Point_2& p) const { return @@ -75,14 +75,14 @@ struct MyTraits { } }; struct Compare_angle_with_x_axis_2 - : public std::binary_function + : public CGAL::binary_function { CGAL::Comparison_result operator()(const Direction_2& d, const Direction_2& e) const { return CGAL::compare_angle_with_x_axisC2(d.xd, d.yd, e.xd, e.yd); } }; struct Area_less_rectangle_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Rectangle_2& d, const Rectangle_2& e) const { @@ -101,7 +101,7 @@ struct MyTraits { } }; struct Area_less_parallelogram_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Parallelogram_2& d, const Parallelogram_2& e) const @@ -120,7 +120,7 @@ struct MyTraits { } }; struct Width_less_strip_2 - : public std::binary_function + : public CGAL::binary_function { bool operator()(const Strip_2& d, const Strip_2& e) const { @@ -133,7 +133,7 @@ struct MyTraits { } }; struct Construct_vector_2 - : public std::binary_function + : public CGAL::binary_function { Vector_2 operator()(const Point_2& p, const Point_2& q) const { @@ -155,7 +155,7 @@ struct MyTraits { } }; struct Construct_perpendicular_vector_2 - : public std::binary_function + : public CGAL::binary_function { Vector_2 operator()(const Vector_2& v, CGAL::Orientation o) const { @@ -193,7 +193,7 @@ struct MyTraits { } }; struct Construct_line_2 - : public std::binary_function + : public CGAL::binary_function { Line_2 operator()(const Point_2& p, const Direction_2& d) const { diff --git a/Box_intersection_d/include/CGAL/Box_intersection_d/Box_traits_d.h b/Box_intersection_d/include/CGAL/Box_intersection_d/Box_traits_d.h index 43174ca8e7f..3bcff1f3b7d 100644 --- a/Box_intersection_d/include/CGAL/Box_intersection_d/Box_traits_d.h +++ b/Box_intersection_d/include/CGAL/Box_intersection_d/Box_traits_d.h @@ -91,7 +91,7 @@ struct Predicate_traits_d : public BoxTraits { // compare dim a b = islolesslo a b dim class Compare : - public std::binary_function + public CGAL::binary_function { int dim; public: diff --git a/Cone_spanners_2/include/CGAL/Cone_spanners_2/Less_by_direction_2.h b/Cone_spanners_2/include/CGAL/Cone_spanners_2/Less_by_direction_2.h index a3bd3499e94..dece7cfe53a 100644 --- a/Cone_spanners_2/include/CGAL/Cone_spanners_2/Less_by_direction_2.h +++ b/Cone_spanners_2/include/CGAL/Cone_spanners_2/Less_by_direction_2.h @@ -57,7 +57,7 @@ namespace CGAL { * */ template -class Less_by_direction_2 : public std::binary_function { public: diff --git a/Generator/doc/Generator/CGAL/Random_convex_set_traits_2.h b/Generator/doc/Generator/CGAL/Random_convex_set_traits_2.h index 0ece677dd7a..b94e85e91c2 100644 --- a/Generator/doc/Generator/CGAL/Random_convex_set_traits_2.h +++ b/Generator/doc/Generator/CGAL/Random_convex_set_traits_2.h @@ -27,14 +27,14 @@ typedef Kernel::FT FT; /*! function object class derived from -`std::binary_function` +`CGAL::binary_function` */ typedef unspecified_type Sum; /*! function object class derived from -`std::binary_function` +`CGAL::binary_function` */ typedef unspecified_type Scale; @@ -46,7 +46,7 @@ typedef unspecified_type Max_coordinate; /*! function object class derived from -`std::binary_function` +`CGAL::binary_function` */ typedef unspecified_type Angle_less; diff --git a/Generator/include/CGAL/Random_convex_set_traits_2.h b/Generator/include/CGAL/Random_convex_set_traits_2.h index b3897e935e3..ea2d07be5cb 100644 --- a/Generator/include/CGAL/Random_convex_set_traits_2.h +++ b/Generator/include/CGAL/Random_convex_set_traits_2.h @@ -55,7 +55,7 @@ struct Random_convex_set_traits_2 : public Kernel { }; struct Sum - : public std::binary_function< Point_2, Point_2, Point_2 > + : public CGAL::binary_function< Point_2, Point_2, Point_2 > { Point_2 operator()( const Point_2& p, const Point_2& q) const @@ -63,7 +63,7 @@ struct Random_convex_set_traits_2 : public Kernel { }; struct Scale - : public std::binary_function< Point_2, FT, Point_2 > + : public CGAL::binary_function< Point_2, FT, Point_2 > { Point_2 operator()( const Point_2& p, const FT& k) const @@ -71,7 +71,7 @@ struct Random_convex_set_traits_2 : public Kernel { }; struct Angle_less - : public std::binary_function< Point_2, Point_2, bool > + : public CGAL::binary_function< Point_2, Point_2, bool > { bool operator()( const Point_2& p, const Point_2& q) const diff --git a/Inscribed_areas/include/CGAL/extremal_polygon_2.h b/Inscribed_areas/include/CGAL/extremal_polygon_2.h index 11649dea5c4..7faf95182b0 100644 --- a/Inscribed_areas/include/CGAL/extremal_polygon_2.h +++ b/Inscribed_areas/include/CGAL/extremal_polygon_2.h @@ -40,7 +40,7 @@ namespace CGAL { //!!! This will eventually be integrated into function_objects.h template < class Array, class Index, class Element > struct Index_operator -: public std::binary_function< Array, Index, Element > +: public CGAL::binary_function< Array, Index, Element > { Element& operator()( Array& a, const Index& i) const diff --git a/Kinetic_data_structures/include/CGAL/Polynomial/internal/Simple_interval_root.h b/Kinetic_data_structures/include/CGAL/Polynomial/internal/Simple_interval_root.h index cb3e248e32b..12245342204 100644 --- a/Kinetic_data_structures/include/CGAL/Polynomial/internal/Simple_interval_root.h +++ b/Kinetic_data_structures/include/CGAL/Polynomial/internal/Simple_interval_root.h @@ -663,7 +663,7 @@ public: }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Kinetic_data_structures/include/CGAL/Polynomial/internal/Sturm_root_rep.h b/Kinetic_data_structures/include/CGAL/Polynomial/internal/Sturm_root_rep.h index a2664e80b83..58935a75b85 100644 --- a/Kinetic_data_structures/include/CGAL/Polynomial/internal/Sturm_root_rep.h +++ b/Kinetic_data_structures/include/CGAL/Polynomial/internal/Sturm_root_rep.h @@ -968,7 +968,7 @@ public: }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Kinetic_data_structures/include/CGAL/Tools/utility_macros.h b/Kinetic_data_structures/include/CGAL/Tools/utility_macros.h index de9a5932490..0cef0031f83 100644 --- a/Kinetic_data_structures/include/CGAL/Tools/utility_macros.h +++ b/Kinetic_data_structures/include/CGAL/Tools/utility_macros.h @@ -276,7 +276,7 @@ template \ }; \ \ class Compare \ - : public std::binary_function< Type, Type, \ + : public CGAL::binary_function< Type, Type, \ Comparison_result > { \ public: \ Comparison_result operator()( const Type& x, \ diff --git a/Nef_2/include/CGAL/Nef_polynomial.h b/Nef_2/include/CGAL/Nef_polynomial.h index 1e29270cbd9..239c70ec7cd 100644 --- a/Nef_2/include/CGAL/Nef_polynomial.h +++ b/Nef_2/include/CGAL/Nef_polynomial.h @@ -145,7 +145,7 @@ public: typedef typename AST_NT::Is_exact Is_exact; typedef Tag_false Is_numerical_sensitive; class Integral_division - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -157,7 +157,7 @@ public: }; class Gcd - : public std::binary_function< Type, Type, Type > { + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, const Type& y ) const { // By definition gcd(0,0) == 0 @@ -191,7 +191,7 @@ template class Real_embeddable_traits< Nef_polynomial > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, CGAL::Comparison_result > { public: CGAL::Comparison_result inline operator()( diff --git a/NewKernel_d/include/CGAL/NewKernel_d/Types/Sphere.h b/NewKernel_d/include/CGAL/NewKernel_d/Types/Sphere.h index 114410b4e76..ac8cc67f4c9 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/Types/Sphere.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/Types/Sphere.h @@ -103,7 +103,7 @@ template struct Point_of_sphere : private Store_kernel { typedef Point result_type; typedef Sphere first_argument_type; typedef int second_argument_type; - struct Trans : std::binary_function { + struct Trans : CGAL::binary_function { FT const& r_; int idx; bool sgn; Trans (int n, FT const& r, bool b) : r_(r), idx(n), sgn(b) {} FT operator()(FT const&x, int i)const{ diff --git a/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h b/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h index 66ebfb9e6c2..f2c7223e92c 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h @@ -1032,7 +1032,7 @@ template struct Midpoint : private Store_kernel { typedef Point first_argument_type; typedef Point second_argument_type; // There is a division, but it will be cast to RT afterwards anyway, so maybe we could use RT. - struct Average : std::binary_function { + struct Average : CGAL::binary_function { FT operator()(FT const&a, RT const&b)const{ return (a+b)/2; } @@ -1098,7 +1098,7 @@ template struct Squared_distance : private Store_kernel { typedef RT result_type; typedef Point first_argument_type; typedef Point second_argument_type; - struct Sq_diff : std::binary_function { + struct Sq_diff : CGAL::binary_function { RT operator()(RT const&a, RT const&b)const{ return CGAL::square(a-b); } diff --git a/Number_types/include/CGAL/CORE_BigFloat.h b/Number_types/include/CGAL/CORE_BigFloat.h index 6f607f917eb..401b91e497f 100644 --- a/Number_types/include/CGAL/CORE_BigFloat.h +++ b/Number_types/include/CGAL/CORE_BigFloat.h @@ -89,32 +89,32 @@ public: } }; - struct In :public std::binary_function{ + struct In :public CGAL::binary_function{ bool operator()( Bound x, const Interval& a ) const { CGAL_precondition(CGAL::singleton(x)); return (Lower()(a) <= x && x <= Upper()(a)); } }; - struct Equal :public std::binary_function{ + struct Equal :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return (Upper()(a) == Upper()(b) && Lower()(a) == Lower()(b)); } }; - struct Subset :public std::binary_function{ + struct Subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return Lower()(b) <= Lower()(a) && Upper()(a) <= Upper()(b); } }; - struct Proper_subset :public std::binary_function{ + struct Proper_subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return Subset()(a,b) && (!Equal()(a,b)); } }; - struct Intersection :public std::binary_function{ + struct Intersection :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { BOOST_USING_STD_MAX(); BOOST_USING_STD_MIN(); @@ -128,7 +128,7 @@ public: }; - struct Overlap :public std::binary_function{ + struct Overlap :public CGAL::binary_function{ bool operator() ( Interval x, Interval y ) const { Self::Zero_in Zero_in; bool result = Zero_in(x-y); @@ -136,7 +136,7 @@ public: } }; - struct Hull :public std::binary_function{ + struct Hull :public CGAL::binary_function{ // for debugging /* void print_bf(CORE::BigFloat bf, std::string s) const { @@ -234,7 +234,7 @@ public: } }; - struct Construct :public std::binary_function{ + struct Construct :public CGAL::binary_function{ Interval operator()( const Bound& l,const Bound& r) const { CGAL_precondition( l < r ); return Hull()(l,r); @@ -405,7 +405,7 @@ template <> class Algebraic_structure_traits< CORE::BigFloat > }; class Kth_root - : public std::binary_function { + : public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { @@ -470,7 +470,7 @@ template <> class Real_embeddable_traits< CORE::BigFloat > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/CORE_BigInt.h b/Number_types/include/CGAL/CORE_BigInt.h index 16c175a7025..9836a493603 100644 --- a/Number_types/include/CGAL/CORE_BigInt.h +++ b/Number_types/include/CGAL/CORE_BigInt.h @@ -62,7 +62,7 @@ template <> class Algebraic_structure_traits< CORE::BigInt > class Gcd - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -101,7 +101,7 @@ template <> class Real_embeddable_traits< CORE::BigInt > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/CORE_BigRat.h b/Number_types/include/CGAL/CORE_BigRat.h index fcf5322bc19..41943f3310a 100644 --- a/Number_types/include/CGAL/CORE_BigRat.h +++ b/Number_types/include/CGAL/CORE_BigRat.h @@ -80,7 +80,7 @@ template <> class Real_embeddable_traits< CORE::BigRat > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/CORE_Expr.h b/Number_types/include/CGAL/CORE_Expr.h index 88467a4f885..9a55dc46cd9 100644 --- a/Number_types/include/CGAL/CORE_Expr.h +++ b/Number_types/include/CGAL/CORE_Expr.h @@ -49,7 +49,7 @@ template <> class Algebraic_structure_traits< CORE::Expr > }; class Kth_root - : public std::binary_function { + : public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { @@ -144,7 +144,7 @@ template <> class Real_embeddable_traits< CORE::Expr > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/Counted_number.h b/Number_types/include/CGAL/Counted_number.h index 5b4d4c20c07..197dc5f3297 100644 --- a/Number_types/include/CGAL/Counted_number.h +++ b/Number_types/include/CGAL/Counted_number.h @@ -584,7 +584,7 @@ struct Square_selector< NT, Null_functor > { template< class NT, class Functor > struct Integral_division_selector { - struct Integral_division : public std::binary_function { + struct Integral_division : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return x.integral_division( y ); } @@ -598,7 +598,7 @@ struct Integral_division_selector< NT, Null_functor > { template< class NT, class Functor > struct Is_square_selector { - struct Is_square : public std::binary_function { + struct Is_square : public CGAL::binary_function { bool operator()( const NT& x, NT& y ) const { return x.is_square( y ); } @@ -630,7 +630,7 @@ struct Sqrt_selector { template< class NT, class Functor > struct Kth_root_selector { - struct Kth_root : public std::binary_function { + struct Kth_root : public CGAL::binary_function { NT operator()( int k, const NT& x ) const { return x.kth_root( k ); } @@ -686,7 +686,7 @@ struct Root_of_selector< NT, Null_functor > { template< class NT, class Functor > struct Gcd_selector { - struct Gcd : public std::binary_function { + struct Gcd : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return x.gcd( y ); } @@ -700,7 +700,7 @@ struct Gcd_selector< NT, Null_functor > { template< class NT, class Functor > struct Div_selector { - struct Div : public std::binary_function { + struct Div : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return x.div( y ); } @@ -714,7 +714,7 @@ struct Div_selector< NT, Null_functor > { template< class NT, class Functor > struct Mod_selector { - struct Mod : public std::binary_function { + struct Mod : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return x.mod( y ); } diff --git a/Number_types/include/CGAL/Gmpfi.h b/Number_types/include/CGAL/Gmpfi.h index 84240dacce0..319e1aa5b34 100644 --- a/Number_types/include/CGAL/Gmpfi.h +++ b/Number_types/include/CGAL/Gmpfi.h @@ -62,7 +62,7 @@ public: }; struct Is_square: - public std::binary_function{ + public CGAL::binary_function{ Boolean operator()(const Type &x)const{ return x.is_square(); }; @@ -79,14 +79,14 @@ public: }; struct Kth_Root: - public std::binary_function{ + public CGAL::binary_function{ Type operator()(int k,const Type &x)const{ return (k==3?x.cbrt():x.kthroot(k)); }; }; struct Divides: - public std::binary_function{ + public CGAL::binary_function{ Boolean operator()(const Type &d,const Type &n)const{ // Avoid compiler warning (void)n; @@ -149,7 +149,7 @@ public INTERN_RET::Real_embeddable_traits_base{ }; struct Compare: - public std::binary_function{ + public CGAL::binary_function{ inline Comparison_result operator() (const Type &x,const Type &y)const{ return x.compare(y); @@ -184,7 +184,7 @@ public: typedef CGAL::Tag_false With_empty_interval; typedef CGAL::Tag_true Is_interval; - struct Construct :public std::binary_function{ + struct Construct :public CGAL::binary_function{ Interval operator()( const Bound& l,const Bound& r) const { CGAL_precondition( l < r ); return Interval(std::make_pair(l,r)); @@ -233,37 +233,37 @@ public: } }; - struct In :public std::binary_function{ + struct In :public CGAL::binary_function{ bool operator()( Bound x, const Interval& a ) const { return a.inf() <= x && x <= a.sup(); } }; - struct Equal :public std::binary_function{ + struct Equal :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return a.is_same(b); } }; - struct Overlap :public std::binary_function{ + struct Overlap :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return a.do_overlap(b); } }; - struct Subset :public std::binary_function{ + struct Subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return b.inf() <= a.inf() && a.sup() <= b.sup() ; } }; - struct Proper_subset :public std::binary_function{ + struct Proper_subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return Subset()(a,b) && ! Equal()(a,b); } }; - struct Hull :public std::binary_function{ + struct Hull :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { BOOST_USING_STD_MAX(); BOOST_USING_STD_MIN(); @@ -277,7 +277,7 @@ public: // struct Empty is Null_functor - struct Intersection :public std::binary_function{ + struct Intersection :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { BOOST_USING_STD_MAX(); BOOST_USING_STD_MIN(); diff --git a/Number_types/include/CGAL/Gmpfr.h b/Number_types/include/CGAL/Gmpfr.h index 605f23ddfe6..45a16c2253a 100644 --- a/Number_types/include/CGAL/Gmpfr.h +++ b/Number_types/include/CGAL/Gmpfr.h @@ -55,7 +55,7 @@ public: }; struct Is_square: - public std::binary_function{ + public CGAL::binary_function{ Boolean operator()(const Type &x,Type &y)const{ return x.is_square(y); }; @@ -72,7 +72,7 @@ public: }; struct Kth_Root: - public std::binary_function{ + public CGAL::binary_function{ Type operator()(int k,const Type &x)const{ return (k==3?x.cbrt():x.kthroot(k)); }; @@ -130,7 +130,7 @@ public INTERN_RET::Real_embeddable_traits_base{ }; struct Compare: - public std::binary_function{ + public CGAL::binary_function{ inline Comparison_result operator() (const Type &x,const Type &y)const{ return x.compare(y); diff --git a/Number_types/include/CGAL/Gmpq.h b/Number_types/include/CGAL/Gmpq.h index e25d45f0be9..48186657ade 100644 --- a/Number_types/include/CGAL/Gmpq.h +++ b/Number_types/include/CGAL/Gmpq.h @@ -35,7 +35,7 @@ template <> class Algebraic_structure_traits< Gmpq > typedef Tag_false Is_numerical_sensitive; class Is_square - : public std::binary_function< Type, Type&, + : public CGAL::binary_function< Type, Type&, bool > { public: bool operator()( const Type& x_, Type& y ) const { diff --git a/Number_types/include/CGAL/Gmpz.h b/Number_types/include/CGAL/Gmpz.h index a9c05a57f91..7896ff321a9 100644 --- a/Number_types/include/CGAL/Gmpz.h +++ b/Number_types/include/CGAL/Gmpz.h @@ -51,7 +51,7 @@ public: typedef INTERN_AST::Is_square_per_sqrt< Type > Is_square; class Integral_division - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -64,7 +64,7 @@ public: }; class Gcd - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, diff --git a/Number_types/include/CGAL/Gmpzf.h b/Number_types/include/CGAL/Gmpzf.h index 4a22c228169..98763c274d4 100644 --- a/Number_types/include/CGAL/Gmpzf.h +++ b/Number_types/include/CGAL/Gmpzf.h @@ -44,7 +44,7 @@ public: }; struct Integral_division - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Type > { public: @@ -56,7 +56,7 @@ public: }; struct Gcd - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Type > { public: @@ -69,7 +69,7 @@ public: }; class Div - : public std::binary_function< Type, Type, Type > { + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, const Type& y ) const { return Type(x).div( y ); @@ -79,7 +79,7 @@ public: typedef INTERN_AST::Mod_per_operator< Type > Mod; class Is_square - : public std::binary_function< Type, Type&, bool > { + : public CGAL::binary_function< Type, Type&, bool > { public: bool operator()( const Type& x, Type& y ) const { y = CGAL::approximate_sqrt(x); @@ -111,7 +111,7 @@ public: }; struct Compare - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: diff --git a/Number_types/include/CGAL/Interval_nt.h b/Number_types/include/CGAL/Interval_nt.h index 6437a89762b..a542cc9d009 100644 --- a/Number_types/include/CGAL/Interval_nt.h +++ b/Number_types/include/CGAL/Interval_nt.h @@ -682,7 +682,7 @@ operator/ (const Interval_nt & a, double b) // TODO: What about these two guys? Where do they belong to? template struct Min > - : public std::binary_function, + : public CGAL::binary_function, Interval_nt, Interval_nt > { @@ -697,7 +697,7 @@ struct Min > template struct Max > - : public std::binary_function, + : public CGAL::binary_function, Interval_nt, Interval_nt > { @@ -744,7 +744,7 @@ ldexp(const Interval_nt &i, int e) // TODO: To which concept do these functors belong? Can we remove them?? template < bool b > struct Equal_to < Interval_nt, Interval_nt > - : public std::binary_function< Interval_nt, Interval_nt, Uncertain > + : public CGAL::binary_function< Interval_nt, Interval_nt, Uncertain > { Uncertain operator()( const Interval_nt& x, const Interval_nt& y) const @@ -753,7 +753,7 @@ struct Equal_to < Interval_nt, Interval_nt > template < bool b > struct Not_equal_to < Interval_nt, Interval_nt > - : public std::binary_function< Interval_nt, Interval_nt, Uncertain > + : public CGAL::binary_function< Interval_nt, Interval_nt, Uncertain > { Uncertain operator()( const Interval_nt& x, const Interval_nt& y) const @@ -762,7 +762,7 @@ struct Not_equal_to < Interval_nt, Interval_nt > template < bool b > struct Greater < Interval_nt, Interval_nt > - : public std::binary_function< Interval_nt, Interval_nt, Uncertain > + : public CGAL::binary_function< Interval_nt, Interval_nt, Uncertain > { Uncertain operator()( const Interval_nt& x, const Interval_nt& y) const @@ -771,7 +771,7 @@ struct Greater < Interval_nt, Interval_nt > template < bool b > struct Less < Interval_nt, Interval_nt > - : public std::binary_function< Interval_nt, Interval_nt, Uncertain > + : public CGAL::binary_function< Interval_nt, Interval_nt, Uncertain > { Uncertain operator()( const Interval_nt& x, const Interval_nt& y) const @@ -780,7 +780,7 @@ struct Less < Interval_nt, Interval_nt > template < bool b > struct Greater_equal < Interval_nt, Interval_nt > - : public std::binary_function< Interval_nt, Interval_nt, Uncertain > + : public CGAL::binary_function< Interval_nt, Interval_nt, Uncertain > { Uncertain operator()( const Interval_nt& x, const Interval_nt& y) const @@ -789,7 +789,7 @@ struct Greater_equal < Interval_nt, Interval_nt > template < bool b > struct Less_equal < Interval_nt, Interval_nt > - : public std::binary_function< Interval_nt, Interval_nt, Uncertain > + : public CGAL::binary_function< Interval_nt, Interval_nt, Uncertain > { Uncertain operator()( const Interval_nt& x, const Interval_nt& y) const @@ -991,7 +991,7 @@ template< bool B > class Real_embeddable_traits< Interval_nt > }; class Compare - : public std::binary_function< Type, Type, Comparison_result > { + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, const Type& y ) const { return INTERN_INTERVAL_NT::compare( x, y ); @@ -1070,7 +1070,7 @@ class Algebraic_structure_traits< Interval_nt > }; struct Is_square - :public std::binary_function,Interval_nt&,Boolean > + :public CGAL::binary_function,Interval_nt&,Boolean > { Boolean operator()(const Interval_nt& x) const { return INTERN_INTERVAL_NT::is_positive( x ); @@ -1093,7 +1093,7 @@ class Algebraic_structure_traits< Interval_nt > }; class Divides - : public std::binary_function< Type, Type, Boolean > { + : public CGAL::binary_function< Type, Type, Boolean > { public: Boolean operator()( const Type& x, const Type&) const { return ! Is_zero()(x); @@ -1154,7 +1154,7 @@ public: typedef CGAL::Tag_false With_empty_interval; typedef CGAL::Tag_true Is_interval; - struct Construct :public std::binary_function{ + struct Construct :public CGAL::binary_function{ Interval operator()( const Bound& l,const Bound& r) const { CGAL_precondition( l < r ); return Interval(l,r); @@ -1203,37 +1203,37 @@ public: } }; - struct In :public std::binary_function{ + struct In :public CGAL::binary_function{ bool operator()( Bound x, const Interval& a ) const { return Lower()(a) <= x && x <= Upper()(a); } }; - struct Equal :public std::binary_function{ + struct Equal :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return a.is_same(b); } }; - struct Overlap :public std::binary_function{ + struct Overlap :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return a.do_overlap(b); } }; - struct Subset :public std::binary_function{ + struct Subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return Lower()(b) <= Lower()(a) && Upper()(a) <= Upper()(b) ; } }; - struct Proper_subset :public std::binary_function{ + struct Proper_subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return Subset()(a,b) && ! Equal()(a,b); } }; - struct Hull :public std::binary_function{ + struct Hull :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { BOOST_USING_STD_MAX(); BOOST_USING_STD_MIN(); @@ -1247,7 +1247,7 @@ public: // struct Empty is Null_functor - struct Intersection :public std::binary_function{ + struct Intersection :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { BOOST_USING_STD_MAX(); BOOST_USING_STD_MIN(); diff --git a/Number_types/include/CGAL/Lazy_exact_nt.h b/Number_types/include/CGAL/Lazy_exact_nt.h index 600c38f70b0..fd261f3ec85 100644 --- a/Number_types/include/CGAL/Lazy_exact_nt.h +++ b/Number_types/include/CGAL/Lazy_exact_nt.h @@ -757,7 +757,7 @@ struct Square_selector< NT, Null_functor > { template< class NT, class Functor > struct Integral_division_selector { - struct Integral_division : public std::binary_function { + struct Integral_division : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return NT( CGAL_NTS integral_division( x.exact(), y.exact() ) ); } @@ -773,7 +773,7 @@ struct Integral_division_selector< NT, Null_functor > { template< class NT, class Functor > struct Is_square_selector { - struct Is_square : public std::binary_function { + struct Is_square : public CGAL::binary_function { bool operator()( const NT& x, NT& y ) const { typename NT::ET y_et; bool result = CGAL_NTS is_square( x.exact(), y_et ); @@ -810,7 +810,7 @@ struct Sqrt_selector { template< class NT, class Functor > struct Kth_root_selector { - struct Kth_root : public std::binary_function { + struct Kth_root : public CGAL::binary_function { NT operator()( int k, const NT& x ) const { return NT( CGAL_NTS kth_root( k, x.exact() ) ); } @@ -855,7 +855,7 @@ struct Root_of_selector< NT, Null_functor > { template< class NT, class Functor > struct Gcd_selector { - struct Gcd : public std::binary_function { + struct Gcd : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { CGAL_PROFILER(std::string("calls to : ") + std::string(CGAL_PRETTY_FUNCTION)); return NT( CGAL_NTS gcd( x.exact(), y.exact() ) ); @@ -872,7 +872,7 @@ struct Gcd_selector< NT, Null_functor > { template< class NT, class Functor > struct Div_selector { - struct Div : public std::binary_function { + struct Div : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return NT( CGAL_NTS div( x.exact(), y.exact() ) ); } @@ -904,7 +904,7 @@ struct Inverse_selector< NT, Null_functor > { template< class NT, class Functor > struct Mod_selector { - struct Mod : public std::binary_function { + struct Mod : public CGAL::binary_function { NT operator()( const NT& x, const NT& y ) const { return NT( CGAL_NTS mod( x.exact(), y.exact() ) ); } @@ -1054,7 +1054,7 @@ template < typename ET > class Real_embeddable_traits< Lazy_exact_nt > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& a, @@ -1215,13 +1215,13 @@ public: typedef Lazy_exact_nt Numerator_type; typedef Lazy_exact_nt Denominator_type; - struct Common_factor : std::binary_function{ + struct Common_factor : CGAL::binary_function{ Denominator_type operator()(const Denominator_type& a, const Denominator_type& b) const { typename ETT::Common_factor common_factor; return Denominator_type(common_factor(a.exact(),b.exact())); } }; - struct Compose : std::binary_function{ + struct Compose : CGAL::binary_function{ Type operator()(const Numerator_type& n, const Denominator_type& d) const { typename ETT::Compose compose; return Type(compose(n.exact(),d.exact())); @@ -1253,7 +1253,7 @@ class Fraction_traits< Lazy_exact_nt< ET > > template < class ET > struct Min > - : public std::binary_function,Lazy_exact_nt,Lazy_exact_nt > { + : public CGAL::binary_function,Lazy_exact_nt,Lazy_exact_nt > { Lazy_exact_nt operator()( const Lazy_exact_nt& x, const Lazy_exact_nt& y) const { @@ -1271,7 +1271,7 @@ struct Min > template < class ET > struct Max > - : public std::binary_function,Lazy_exact_nt,Lazy_exact_nt > { + : public CGAL::binary_function,Lazy_exact_nt,Lazy_exact_nt > { Lazy_exact_nt operator()( const Lazy_exact_nt& x, const Lazy_exact_nt& y) const { diff --git a/Number_types/include/CGAL/MP_Float.h b/Number_types/include/CGAL/MP_Float.h index 1f7f40851f8..8aa566125f5 100644 --- a/Number_types/include/CGAL/MP_Float.h +++ b/Number_types/include/CGAL/MP_Float.h @@ -424,7 +424,7 @@ template <> class Algebraic_structure_traits< MP_Float > }; struct Integral_division - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Type > { public: @@ -448,7 +448,7 @@ template <> class Algebraic_structure_traits< MP_Float > }; class Gcd - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -458,7 +458,7 @@ template <> class Algebraic_structure_traits< MP_Float > }; class Div - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -471,7 +471,7 @@ template <> class Algebraic_structure_traits< MP_Float > // Default implementation of Divides functor for unique factorization domains // x divides y if gcd(y,x) equals x up to inverses class Divides - : public std::binary_function{ + : public CGAL::binary_function{ public: bool operator()( const Type& x, const Type& y) const { return internal::division(y,x).second == 0 ; @@ -501,7 +501,7 @@ template <> class Real_embeddable_traits< MP_Float > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/Mpzf.h b/Number_types/include/CGAL/Mpzf.h index 4ae55981e2e..214611fe94a 100644 --- a/Number_types/include/CGAL/Mpzf.h +++ b/Number_types/include/CGAL/Mpzf.h @@ -1034,7 +1034,7 @@ std::istream& operator>> (std::istream& is, Mpzf& a) }; struct Gcd - : public std::binary_function< Type, Type, Type > { + : public CGAL::binary_function< Type, Type, Type > { Type operator()( const Type& x, const Type& y ) const { @@ -1050,7 +1050,7 @@ std::istream& operator>> (std::istream& is, Mpzf& a) }; struct Integral_division - : public std::binary_function< Type, Type, Type > { + : public CGAL::binary_function< Type, Type, Type > { Type operator()( const Type& x, const Type& y ) const { @@ -1066,7 +1066,7 @@ std::istream& operator>> (std::istream& is, Mpzf& a) }; struct Is_square - : public std::binary_function< Type, Type&, bool > { + : public CGAL::binary_function< Type, Type&, bool > { bool operator()( const Type& x, Type& y ) const { // TODO: avoid doing 2 calls. if (!Mpzf_is_square(x)) return false; @@ -1096,7 +1096,7 @@ std::istream& operator>> (std::istream& is, Mpzf& a) }; struct Compare - : public std::binary_function< Type, Type, Comparison_result > { + : public CGAL::binary_function< Type, Type, Comparison_result > { Comparison_result operator()( const Type& x, const Type& y ) const { diff --git a/Number_types/include/CGAL/Number_type_checker.h b/Number_types/include/CGAL/Number_type_checker.h index 5a4c5264b2b..988ecd8e03f 100644 --- a/Number_types/include/CGAL/Number_type_checker.h +++ b/Number_types/include/CGAL/Number_type_checker.h @@ -506,7 +506,7 @@ public: // CGAL::Algebraic_structure_traits< >::Integral_division class Integral_division - : public std::binary_function< Type, Type, Type > { + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& a, const Type& b) const { CGAL_NT_CHECK_DEBUG("AST::Integral_division"); @@ -517,7 +517,7 @@ public: }; class Divides - : public std::binary_function< Type, Type, bool > { + : public CGAL::binary_function< Type, Type, bool > { public: bool operator()( const Type& a, const Type& b) const { CGAL_NT_CHECK_DEBUG("AST::Divides"); @@ -554,7 +554,7 @@ private: public: // CGAL::Algebraic_structure_traits< >::Gcd class Gcd - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Type > { public: @@ -582,7 +582,7 @@ private: public: // CGAL::Algebraic_structure_traits< >::Div class Div - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Type > { public: @@ -597,7 +597,7 @@ public: }; // CGAL::Algebraic_structure_traits< >::Mod class Mod - : public std::binary_function< Type, + : public CGAL::binary_function< Type, Type, Type > { public: @@ -797,7 +797,7 @@ public: // CGAL::Real_embeddable_traits< >::Compare class Compare - : public std::binary_function< Type , Type, Comparison_result > { + : public CGAL::binary_function< Type , Type, Comparison_result > { public: Comparison_result operator()(const Type& a, const Type& b) const { CGAL_NT_CHECK_DEBUG("RET::Compare"); diff --git a/Number_types/include/CGAL/Quotient.h b/Number_types/include/CGAL/Quotient.h index 8c582ca9143..670094ada7b 100644 --- a/Number_types/include/CGAL/Quotient.h +++ b/Number_types/include/CGAL/Quotient.h @@ -638,7 +638,7 @@ public: class Is_square - : public std::binary_function< Quotient, Quotient&, bool > { + : public CGAL::binary_function< Quotient, Quotient&, bool > { public: bool operator()( Quotient x, Quotient& y ) const { NT x_num, x_den, y_num, y_den; @@ -687,7 +687,7 @@ template < class NT > class Real_embeddable_traits_quotient_base< Quotient > typedef Quotient Type; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/Sqrt_extension/Algebraic_structure_traits.h b/Number_types/include/CGAL/Sqrt_extension/Algebraic_structure_traits.h index 67fb7c90b33..252d3f8fb6d 100644 --- a/Number_types/include/CGAL/Sqrt_extension/Algebraic_structure_traits.h +++ b/Number_types/include/CGAL/Sqrt_extension/Algebraic_structure_traits.h @@ -61,7 +61,7 @@ public: typedef CGAL::Integral_domain_tag Algebraic_category; class Integral_division - : public std::binary_function< Type, Type, Type > { + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x,const Type& y ) const { return x/y; @@ -77,7 +77,7 @@ private: typedef typename AST_COEFF::Divides Divides_coeff; public: class Divides - : public std::binary_function{ + : public CGAL::binary_function{ typedef typename Divides_coeff::result_type BOOL; public: BOOL operator()( const Type& x, const Type& y) const { diff --git a/Number_types/include/CGAL/Sqrt_extension/Real_embeddable_traits.h b/Number_types/include/CGAL/Sqrt_extension/Real_embeddable_traits.h index e3c588cba95..7621828ad84 100644 --- a/Number_types/include/CGAL/Sqrt_extension/Real_embeddable_traits.h +++ b/Number_types/include/CGAL/Sqrt_extension/Real_embeddable_traits.h @@ -43,7 +43,7 @@ class Real_embeddable_traits< Sqrt_extension > }; class Compare - : public std::binary_function< Type, Type, Comparison_result > { + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, const Type& y) const { // must be from the same extension diff --git a/Number_types/include/CGAL/double.h b/Number_types/include/CGAL/double.h index 565882d5e1d..3c75315e4ec 100644 --- a/Number_types/include/CGAL/double.h +++ b/Number_types/include/CGAL/double.h @@ -114,7 +114,7 @@ template <> class Algebraic_structure_traits< double > }; class Kth_root - : public std::binary_function { + : public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { diff --git a/Number_types/include/CGAL/float.h b/Number_types/include/CGAL/float.h index adc9893caa4..d45abedd6d5 100644 --- a/Number_types/include/CGAL/float.h +++ b/Number_types/include/CGAL/float.h @@ -100,7 +100,7 @@ template <> class Algebraic_structure_traits< float > }; class Kth_root - : public std::binary_function { + : public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { CGAL_precondition_msg( k > 0, "'k' must be positive for k-th roots"); diff --git a/Number_types/include/CGAL/int.h b/Number_types/include/CGAL/int.h index b89862a6eee..17814d563c0 100644 --- a/Number_types/include/CGAL/int.h +++ b/Number_types/include/CGAL/int.h @@ -37,7 +37,7 @@ namespace CGAL { namespace INTERN_INT { template< class Type > class Is_square_per_double_conversion - : public std::binary_function< Type, Type&, + : public CGAL::binary_function< Type, Type&, bool > { public: bool operator()( const Type& x, @@ -168,7 +168,7 @@ template<> class Algebraic_structure_traits< short int > // interoperability. This is nescessary because of the implicit conversion // to int for binary operations between short ints. class Integral_division - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -182,7 +182,7 @@ template<> class Algebraic_structure_traits< short int > }; class Gcd - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -242,7 +242,7 @@ template<> class Algebraic_structure_traits< short int > // based on \c Div_mod. class Div - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -253,7 +253,7 @@ template<> class Algebraic_structure_traits< short int > // based on \c Div_mod. class Mod - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, diff --git a/Number_types/include/CGAL/leda_bigfloat.h b/Number_types/include/CGAL/leda_bigfloat.h index 25fd5334d17..c2eae044123 100644 --- a/Number_types/include/CGAL/leda_bigfloat.h +++ b/Number_types/include/CGAL/leda_bigfloat.h @@ -52,7 +52,7 @@ template <> class Algebraic_structure_traits< leda_bigfloat > }; class Kth_root - : public std::binary_function { + : public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { @@ -88,7 +88,7 @@ public: }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/leda_bigfloat_interval.h b/Number_types/include/CGAL/leda_bigfloat_interval.h index cf9f1f6efa9..6ae554f50e5 100644 --- a/Number_types/include/CGAL/leda_bigfloat_interval.h +++ b/Number_types/include/CGAL/leda_bigfloat_interval.h @@ -313,7 +313,7 @@ public: typedef CGAL::Tag_true Is_interval; typedef CGAL::Tag_true With_empty_interval; - struct Construct :public std::binary_function{ + struct Construct :public CGAL::binary_function{ Interval operator()( const Bound& l,const Bound& r) const { CGAL_precondition( l < r ); return Interval(l,r); @@ -368,43 +368,43 @@ public: } }; - struct In :public std::binary_function{ + struct In :public CGAL::binary_function{ bool operator()( Bound x, const Interval& a ) const { return ::boost::numeric::in(x,a); } }; - struct Equal :public std::binary_function{ + struct Equal :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return ::boost::numeric::equal(a,b); } }; - struct Overlap :public std::binary_function{ + struct Overlap :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return ::boost::numeric::overlap(a,b); } }; - struct Subset :public std::binary_function{ + struct Subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return ::boost::numeric::subset(a,b); } }; - struct Proper_subset :public std::binary_function{ + struct Proper_subset :public CGAL::binary_function{ bool operator()( const Interval& a, const Interval& b ) const { return ::boost::numeric::proper_subset(a,b); } }; - struct Hull :public std::binary_function{ + struct Hull :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { return ::boost::numeric::hull(a,b); } }; - struct Intersection :public std::binary_function{ + struct Intersection :public CGAL::binary_function{ Interval operator()( const Interval& a, const Interval& b ) const { Interval r = ::boost::numeric::intersect(a,b); return r; diff --git a/Number_types/include/CGAL/leda_integer.h b/Number_types/include/CGAL/leda_integer.h index 2beed2f9613..22806277f0c 100644 --- a/Number_types/include/CGAL/leda_integer.h +++ b/Number_types/include/CGAL/leda_integer.h @@ -53,7 +53,7 @@ template <> class Algebraic_structure_traits< leda_integer > Is_square; class Gcd - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Type > { public: Type operator()( const Type& x, @@ -106,7 +106,7 @@ template <> class Algebraic_structure_traits< leda_integer > // typedef INTERN_AST::Div_per_operator< Type > Div; // class Mod -// : public std::binary_function< Type, Type, +// : public CGAL::binary_function< Type, Type, // Type > { // public: // Type operator()( const Type& x, const Type& y ) const { @@ -146,7 +146,7 @@ template <> class Real_embeddable_traits< leda_integer > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/leda_rational.h b/Number_types/include/CGAL/leda_rational.h index 0bb84be3279..9a33ec2edf6 100644 --- a/Number_types/include/CGAL/leda_rational.h +++ b/Number_types/include/CGAL/leda_rational.h @@ -93,7 +93,7 @@ template <> class Real_embeddable_traits< leda_rational > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/leda_real.h b/Number_types/include/CGAL/leda_real.h index 66039685721..15b474d4488 100644 --- a/Number_types/include/CGAL/leda_real.h +++ b/Number_types/include/CGAL/leda_real.h @@ -58,7 +58,7 @@ template <> class Algebraic_structure_traits< leda_real > }; class Kth_root - : public std::binary_function { + : public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { @@ -125,7 +125,7 @@ template <> class Real_embeddable_traits< leda_real > }; class Compare - : public std::binary_function< Type, Type, + : public CGAL::binary_function< Type, Type, Comparison_result > { public: Comparison_result operator()( const Type& x, diff --git a/Number_types/include/CGAL/long_double.h b/Number_types/include/CGAL/long_double.h index 5365c1bd651..3a2b5d07776 100644 --- a/Number_types/include/CGAL/long_double.h +++ b/Number_types/include/CGAL/long_double.h @@ -104,7 +104,7 @@ template <> class Algebraic_structure_traits< long double > }; class Kth_root - :public std::binary_function { + :public CGAL::binary_function { public: Type operator()( int k, const Type& x) const { diff --git a/Number_types/include/CGAL/long_long.h b/Number_types/include/CGAL/long_long.h index c4779024861..f2dbc7f2232 100644 --- a/Number_types/include/CGAL/long_long.h +++ b/Number_types/include/CGAL/long_long.h @@ -45,7 +45,7 @@ template<> class Algebraic_structure_traits< long long int > typedef INTERN_AST::Mod_per_operator< Type > Mod; class Is_square - : public std::binary_function< Type, Type&, + : public CGAL::binary_function< Type, Type&, bool > { public: bool operator()( const Type& x, diff --git a/Number_types/include/CGAL/mpq_class.h b/Number_types/include/CGAL/mpq_class.h index 5f60b9640aa..80a2126b058 100644 --- a/Number_types/include/CGAL/mpq_class.h +++ b/Number_types/include/CGAL/mpq_class.h @@ -92,7 +92,7 @@ class Algebraic_structure_traits< mpq_class > }; struct Integral_division - : public std::binary_function< mpq_class , mpq_class, mpq_class > { + : public CGAL::binary_function< mpq_class , mpq_class, mpq_class > { template mpq_class operator()( const ::__gmp_expr< T , U1 >& x, @@ -108,7 +108,7 @@ class Algebraic_structure_traits< mpq_class > }; class Is_square - : public std::binary_function< mpq_class, mpq_class&, bool > { + : public CGAL::binary_function< mpq_class, mpq_class&, bool > { public: bool operator()( const mpq_class& x, mpq_class& y ) const { y = mpq_class (::sqrt( x.get_num() ), ::sqrt( x.get_den() )) ; @@ -181,7 +181,7 @@ class Real_embeddable_traits< mpq_class > }; struct Compare - : public std::binary_function< mpq_class, mpq_class, Comparison_result> + : public CGAL::binary_function< mpq_class, mpq_class, Comparison_result> { template Comparison_result operator()( diff --git a/Number_types/include/CGAL/mpz_class.h b/Number_types/include/CGAL/mpz_class.h index 5b334827637..83642c29144 100644 --- a/Number_types/include/CGAL/mpz_class.h +++ b/Number_types/include/CGAL/mpz_class.h @@ -95,7 +95,7 @@ public: struct Integral_division: - public std::binary_function< mpz_class , mpz_class, mpz_class > { + public CGAL::binary_function< mpz_class , mpz_class, mpz_class > { template mpz_class operator()( const ::__gmp_expr< T , U1 >& x, @@ -110,7 +110,7 @@ public: CGAL_IMPLICIT_INTEROPERABLE_BINARY_OPERATOR( Type ) }; - struct Gcd : public std::binary_function< mpz_class, mpz_class, mpz_class > { + struct Gcd : public CGAL::binary_function< mpz_class, mpz_class, mpz_class > { mpz_class operator()( const mpz_class& x, const mpz_class& y) const { @@ -121,7 +121,7 @@ public: CGAL_IMPLICIT_INTEROPERABLE_BINARY_OPERATOR( Type ) }; - struct Div : public std::binary_function< mpz_class, mpz_class, mpz_class > { + struct Div : public CGAL::binary_function< mpz_class, mpz_class, mpz_class > { template mpz_class operator()( const ::__gmp_expr< T , U1 >& x, @@ -132,7 +132,7 @@ public: CGAL_IMPLICIT_INTEROPERABLE_BINARY_OPERATOR( Type ) }; - struct Mod : public std::binary_function< mpz_class, mpz_class, mpz_class > { + struct Mod : public CGAL::binary_function< mpz_class, mpz_class, mpz_class > { template mpz_class operator()( const ::__gmp_expr< T , U1 >& x, @@ -174,7 +174,7 @@ public: }; - /*struct Is_square: public std::binary_function< mpz_class , mpz_class& , bool > { + /*struct Is_square: public CGAL::binary_function< mpz_class , mpz_class& , bool > { template bool operator()( const ::__gmp_expr< T , U >& x, @@ -246,7 +246,7 @@ public: }; struct Compare - : public std::binary_function< mpz_class, mpz_class, Comparison_result > { + : public CGAL::binary_function< mpz_class, mpz_class, Comparison_result > { template Comparison_result operator()( const ::__gmp_expr< T , U1 >& x, diff --git a/Number_types/include/CGAL/utils_classes.h b/Number_types/include/CGAL/utils_classes.h index b93c3012f36..8658e5b5201 100644 --- a/Number_types/include/CGAL/utils_classes.h +++ b/Number_types/include/CGAL/utils_classes.h @@ -27,43 +27,43 @@ namespace CGAL { template < class A, class B = A > -struct Equal_to : public std::binary_function< A, B, bool > { +struct Equal_to : public CGAL::binary_function< A, B, bool > { bool operator()( const A& x, const B& y) const { return x == y; } }; template < class A, class B = A > -struct Not_equal_to : public std::binary_function< A, B, bool > { +struct Not_equal_to : public CGAL::binary_function< A, B, bool > { bool operator()( const A& x, const B& y) const { return x != y; } }; template < class A, class B = A > -struct Greater : public std::binary_function< A, B, bool > { +struct Greater : public CGAL::binary_function< A, B, bool > { bool operator()( const A& x, const B& y) const { return x > y; } }; template < class A, class B = A > -struct Less : public std::binary_function< A, B, bool > { +struct Less : public CGAL::binary_function< A, B, bool > { bool operator()( const A& x, const B& y) const { return x < y; } }; template < class A, class B = A > -struct Greater_equal : public std::binary_function< A, B, bool > { +struct Greater_equal : public CGAL::binary_function< A, B, bool > { bool operator()( const A& x, const B& y) const { return x >= y; } }; template < class A, class B = A > -struct Less_equal : public std::binary_function< A, B, bool > { +struct Less_equal : public CGAL::binary_function< A, B, bool > { bool operator()( const A& x, const B& y) const { return x <= y; } }; template < class NT, class Less = std::less< NT > > -struct Min :public std::binary_function< NT, NT, NT > { +struct Min :public CGAL::binary_function< NT, NT, NT > { Min() {} Min(const Less& c_) : c(c_) {} NT operator()( const NT& x, const NT& y) const @@ -73,7 +73,7 @@ protected: }; template < class NT, class Less = std::less< NT > > -struct Max :public std::binary_function< NT, NT, NT > { +struct Max :public CGAL::binary_function< NT, NT, NT > { Max() {} Max(const Less& c_) : c(c_) {} NT operator()( const NT& x, const NT& y) const @@ -198,7 +198,7 @@ inline void sse2minmax(double& a, double b, double& c) #endif // CGAL_USE_SSE2_MAX template <> -struct Max :public std::binary_function< double, double, double > { +struct Max :public CGAL::binary_function< double, double, double > { Max() {} double operator()( const double& x, const double& y) const @@ -230,7 +230,7 @@ struct Max :public std::binary_function< double, double, double > { }; template <> -struct Min :public std::binary_function< double, double, double > { +struct Min :public CGAL::binary_function< double, double, double > { Min() {} double operator()( const double& x, const double& y) const diff --git a/Number_types/test/Number_types/checked_NT.h b/Number_types/test/Number_types/checked_NT.h index eecd8977f1c..75fcbe33f8e 100644 --- a/Number_types/test/Number_types/checked_NT.h +++ b/Number_types/test/Number_types/checked_NT.h @@ -81,7 +81,7 @@ template struct Algebraic_structure_traits { + : public CGAL::binary_function< Type, Type, Type > { Type operator()( const Type& x, const Type& y ) const { return Type(typename Type::pieces(), CGAL::div(x.x1,y.x1), @@ -89,7 +89,7 @@ template struct Algebraic_structure_traits { + : public CGAL::binary_function< Type, Type, Type > { Type operator()( const Type& x, const Type& y ) const { return Type(typename Type::pieces(), CGAL::mod(x.x1,y.x1), @@ -97,7 +97,7 @@ template struct Algebraic_structure_traits { + : public CGAL::binary_function< Type, Type, Type > { Type operator()( const Type& x, const Type& y ) const { return Type(typename Type::pieces(), CGAL::integral_division(x.x1,y.x1), @@ -131,7 +131,7 @@ templatestruct Real_embeddable_traits > } }; struct Compare - : public std::binary_function< Type, Type, Comparison_result > { + : public CGAL::binary_function< Type, Type, Comparison_result > { Comparison_result operator()( const Type& x, const Type& y ) const { diff --git a/Poisson_surface_reconstruction_3/include/CGAL/Surface_mesher/Poisson_implicit_surface_oracle_3.h b/Poisson_surface_reconstruction_3/include/CGAL/Surface_mesher/Poisson_implicit_surface_oracle_3.h index 7bb8c55e1a2..d2781789749 100644 --- a/Poisson_surface_reconstruction_3/include/CGAL/Surface_mesher/Poisson_implicit_surface_oracle_3.h +++ b/Poisson_surface_reconstruction_3/include/CGAL/Surface_mesher/Poisson_implicit_surface_oracle_3.h @@ -102,7 +102,7 @@ namespace CGAL { namespace { template - struct Return_min : std::binary_function + struct Return_min : CGAL::binary_function { T operator()(const T& a, const T& b) const { diff --git a/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h b/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h index 0742578c7e5..4e5fc8b7670 100644 --- a/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h +++ b/Polynomial/include/CGAL/Polynomial/Algebraic_structure_traits.h @@ -121,7 +121,7 @@ class Polynomial_algebraic_structure_traits_base< POLY, Integral_domain_tag > typedef Integral_domain_tag Algebraic_category; class Integral_division - : public std::binary_function< POLY, POLY, POLY > { + : public CGAL::binary_function< POLY, POLY, POLY > { public: POLY operator()( const POLY& x, const POLY& y ) const { return x / y; @@ -135,7 +135,7 @@ private: typedef typename Divides_coeff::result_type BOOL; public: class Divides - : public std::binary_function{ + : public CGAL::binary_function{ public: BOOL operator()( const POLY& p1, const POLY& p2) const { POLY q; @@ -209,7 +209,7 @@ class Polynomial_algebraic_structure_traits_base< POLY, Unique_factorization_dom typedef Unique_factorization_domain_tag Algebraic_category; class Gcd - : public std::binary_function< POLY, POLY, POLY > { + : public CGAL::binary_function< POLY, POLY, POLY > { typedef typename Polynomial_traits_d::Multivariate_content Mcontent; typedef typename Mcontent::result_type ICoeff; @@ -292,7 +292,7 @@ class Polynomial_algebraic_structure_traits_base< POLY, Field_tag > }; class Div - : public std::binary_function< POLY, POLY, POLY > { + : public CGAL::binary_function< POLY, POLY, POLY > { public: POLY operator()(const POLY& a, const POLY& b) const { POLY q, r; @@ -304,7 +304,7 @@ class Polynomial_algebraic_structure_traits_base< POLY, Field_tag > }; class Mod - : public std::binary_function< POLY, POLY, POLY > { + : public CGAL::binary_function< POLY, POLY, POLY > { public: POLY operator () (const POLY& a, const POLY& b) const { POLY q, r; diff --git a/Polynomial/include/CGAL/Polynomial_traits_d.h b/Polynomial/include/CGAL/Polynomial_traits_d.h index f290aa304b9..014fc63aac9 100644 --- a/Polynomial/include/CGAL/Polynomial_traits_d.h +++ b/Polynomial/include/CGAL/Polynomial_traits_d.h @@ -325,7 +325,7 @@ public: typedef Null_functor Pseudo_division_quotient; struct Gcd_up_to_constant_factor - : public std::binary_function< ICoeff, ICoeff, ICoeff >{ + : public CGAL::binary_function< ICoeff, ICoeff, ICoeff >{ ICoeff operator()(const ICoeff& x, const ICoeff& y) const { if (CGAL::is_zero(x) && CGAL::is_zero(y)) return ICoeff(0); @@ -364,7 +364,7 @@ public: }; struct Get_innermost_coefficient - : public std::binary_function< ICoeff, Polynomial_d, Exponent_vector > { + : public CGAL::binary_function< ICoeff, Polynomial_d, Exponent_vector > { const ICoeff& operator()( const Polynomial_d& p, Exponent_vector ) { return p; } @@ -471,7 +471,7 @@ private: // coeff type has no comparison operators available. private: struct Compare_exponents_coeff_pair - : public std::binary_function< + : public CGAL::binary_function< std::pair< Exponent_vector, Innermost_coefficient_type >, std::pair< Exponent_vector, Innermost_coefficient_type >, bool > @@ -697,7 +697,7 @@ public: // Get_coefficient; struct Get_coefficient - : public std::binary_function { + : public CGAL::binary_function { const Coefficient_type& operator()( const Polynomial_d& p, int i) const { static const Coefficient_type zero = Coefficient_type(0); @@ -712,7 +712,7 @@ public: // Get_innermost_coefficient; struct Get_innermost_coefficient : public - std::binary_function< Polynomial_d, Exponent_vector, Innermost_coefficient_type > + CGAL::binary_function< Polynomial_d, Exponent_vector, Innermost_coefficient_type > { const Innermost_coefficient_type& @@ -927,7 +927,7 @@ public: // Evaluate; struct Evaluate - :public std::binary_function{ + :public CGAL::binary_function{ // Evaluate with respect to one variable Coefficient_type operator()(const Polynomial_d& p, const Coefficient_type& x) const { @@ -1124,7 +1124,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Pseudo_division_quotient - :public std::binary_function { + :public CGAL::binary_function { Polynomial_d operator()(const Polynomial_d& f, const Polynomial_d& g) const { @@ -1136,7 +1136,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Pseudo_division_remainder - :public std::binary_function { + :public CGAL::binary_function { Polynomial_d operator()(const Polynomial_d& f, const Polynomial_d& g) const { @@ -1148,7 +1148,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Gcd_up_to_constant_factor - :public std::binary_function { + :public CGAL::binary_function { Polynomial_d operator()(const Polynomial_d& p, const Polynomial_d& q) const { if(p==q) return CGAL::canonicalize(p); @@ -1165,7 +1165,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Integral_division_up_to_constant_factor - :public std::binary_function { + :public CGAL::binary_function { @@ -1269,7 +1269,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Shift - : public std::binary_function< Polynomial_d,int,Polynomial_d >{ + : public CGAL::binary_function< Polynomial_d,int,Polynomial_d >{ Polynomial_d operator()(const Polynomial_d& p, int e, int i = (d-1)) const { @@ -1319,7 +1319,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Translate - : public std::binary_function< Polynomial_d , Innermost_coefficient_type, + : public CGAL::binary_function< Polynomial_d , Innermost_coefficient_type, Polynomial_d >{ Polynomial_d operator()( @@ -1364,7 +1364,7 @@ struct Construct_innermost_coefficient_const_iterator_range struct Scale : public - std::binary_function< Polynomial_d, Innermost_coefficient_type, Polynomial_d > { + CGAL::binary_function< Polynomial_d, Innermost_coefficient_type, Polynomial_d > { Polynomial_d operator()( Polynomial_d p, const Innermost_coefficient_type& c, int i = (PT::d-1) ) const { @@ -1410,7 +1410,7 @@ struct Construct_innermost_coefficient_const_iterator_range }; struct Resultant - : public std::binary_function{ + : public CGAL::binary_function{ Coefficient_type operator()( diff --git a/STL_Extension/include/CGAL/function_objects.h b/STL_Extension/include/CGAL/function_objects.h index 2f315633bc0..7921e94bd4f 100644 --- a/STL_Extension/include/CGAL/function_objects.h +++ b/STL_Extension/include/CGAL/function_objects.h @@ -407,7 +407,7 @@ compose2_1(const Op1& op1, const Op2& op2, const Op3& op3) template < class Op1, class Op2 > class Unary_compose_2 - : public std::binary_function< typename Op2::first_argument_type, + : public CGAL::binary_function< typename Op2::first_argument_type, typename Op2::second_argument_type, typename Op1::result_type > { @@ -434,7 +434,7 @@ compose1_2(const Op1& op1, const Op2& op2) template < class Op1, class Op2, class Op3 > class Binary_compose_2 - : public std::binary_function< typename Op2::argument_type, + : public CGAL::binary_function< typename Op2::argument_type, typename Op3::argument_type, typename Op1::result_type > { diff --git a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Sqrt_extension_2.h b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Sqrt_extension_2.h index a429ef80e1a..515b2b4ddb3 100644 --- a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Sqrt_extension_2.h +++ b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Sqrt_extension_2.h @@ -279,7 +279,7 @@ public: }; class Compare - : public std::binary_function< Real_embeddable, + : public CGAL::binary_function< Real_embeddable, Real_embeddable, CGAL::Comparison_result >{ public: diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_median_2.h b/Spatial_sorting/include/CGAL/Hilbert_sort_median_2.h index 56df1c0cd33..83d9e506e13 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_median_2.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_median_2.h @@ -32,7 +32,7 @@ namespace internal { template struct Hilbert_cmp_2 - : public std::binary_function { typedef typename K::Point_2 Point; @@ -46,7 +46,7 @@ namespace internal { template struct Hilbert_cmp_2 - : public std::binary_function { typedef typename K::Point_2 Point; @@ -60,7 +60,7 @@ namespace internal { template struct Hilbert_cmp_2 - : public std::binary_function { typedef typename K::Point_2 Point; diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_median_3.h b/Spatial_sorting/include/CGAL/Hilbert_sort_median_3.h index 551c66db534..b72c3db2c4b 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_median_3.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_median_3.h @@ -32,7 +32,7 @@ namespace internal { template struct Hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; @@ -46,7 +46,7 @@ namespace internal { template struct Hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; @@ -60,7 +60,7 @@ namespace internal { template struct Hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; @@ -74,7 +74,7 @@ namespace internal { template struct Hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_median_d.h b/Spatial_sorting/include/CGAL/Hilbert_sort_median_d.h index ffb0d2bd47a..2ae5f69c5b8 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_median_d.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_median_d.h @@ -33,7 +33,7 @@ namespace internal { template struct Hilbert_cmp_d - : public std::binary_function { typedef typename K::Point_d Point; diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_middle_2.h b/Spatial_sorting/include/CGAL/Hilbert_sort_middle_2.h index d2970c14734..d5c8452834e 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_middle_2.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_middle_2.h @@ -33,7 +33,7 @@ namespace internal { template struct Fixed_hilbert_cmp_2 - : public std::binary_function { typedef typename K::Point_2 Point; @@ -48,7 +48,7 @@ namespace internal { template struct Fixed_hilbert_cmp_2 - : public std::binary_function { typedef typename K::Point_2 Point; @@ -63,7 +63,7 @@ namespace internal { template struct Fixed_hilbert_cmp_2 - : public std::binary_function { typedef typename K::Point_2 Point; diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_middle_3.h b/Spatial_sorting/include/CGAL/Hilbert_sort_middle_3.h index b3922537259..0b3737f7388 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_middle_3.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_middle_3.h @@ -32,7 +32,7 @@ namespace internal { template struct Fixed_hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; @@ -47,7 +47,7 @@ namespace internal { template struct Fixed_hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; @@ -62,7 +62,7 @@ namespace internal { template struct Fixed_hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; @@ -77,7 +77,7 @@ namespace internal { template struct Fixed_hilbert_cmp_3 - : public std::binary_function { typedef typename K::Point_3 Point; diff --git a/Spatial_sorting/include/CGAL/Hilbert_sort_middle_d.h b/Spatial_sorting/include/CGAL/Hilbert_sort_middle_d.h index 07f6e2534c9..858e58bb2f6 100644 --- a/Spatial_sorting/include/CGAL/Hilbert_sort_middle_d.h +++ b/Spatial_sorting/include/CGAL/Hilbert_sort_middle_d.h @@ -32,7 +32,7 @@ namespace internal { template struct Fixed_hilbert_cmp_d - : public std::binary_function { typedef typename K::Point_d Point; diff --git a/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_2.h b/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_2.h index a6ef7516ffe..a7e66f651dd 100644 --- a/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_2.h +++ b/Straight_skeleton_2/include/CGAL/Straight_skeleton_builder_2.h @@ -212,7 +212,7 @@ private : typedef std::vector MultinodeVector ; - struct Halfedge_ID_compare : std::binary_function + struct Halfedge_ID_compare : CGAL::binary_function { bool operator() ( Halfedge_handle const& aA, Halfedge_handle const& aB ) const { @@ -229,7 +229,7 @@ public: private : - class Event_compare : public std::binary_function + class Event_compare : public CGAL::binary_function { public: diff --git a/Surface_mesher/demo/Surface_mesher/volume.cpp b/Surface_mesher/demo/Surface_mesher/volume.cpp index b7465d342e1..61e16904d6b 100644 --- a/Surface_mesher/demo/Surface_mesher/volume.cpp +++ b/Surface_mesher/demo/Surface_mesher/volume.cpp @@ -61,7 +61,7 @@ class Classify_from_isovalue_list : boost::shared_ptr isovalues; bool is_identity; - struct Sort_isovalues : std::binary_function + struct Sort_isovalues : CGAL::binary_function { bool operator()(const Isovalue& isoval1, const Isovalue& isoval2) { @@ -110,7 +110,7 @@ public: }; class Generate_surface_identifiers : - public std::binary_function { @@ -143,7 +143,7 @@ public: // typedef std::vector Isovalues; // boost::shared_ptr isovalues; -// struct Sort_isovalues : std::binary_function +// struct Sort_isovalues : CGAL::binary_function // { // bool operator()(const Isovalue& isoval1, const Isovalue& isoval2) // { diff --git a/Surface_mesher/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h b/Surface_mesher/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h index ac14b904963..db54cf0ac92 100644 --- a/Surface_mesher/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h +++ b/Surface_mesher/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h @@ -104,7 +104,7 @@ namespace CGAL { namespace { template - struct Return_min : std::binary_function + struct Return_min : CGAL::binary_function { T operator()(const T& a, const T& b) const { diff --git a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h index 6ad2d9f9b18..58ff9e37fb7 100644 --- a/Triangulation_2/include/CGAL/Constrained_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Constrained_triangulation_2.h @@ -401,7 +401,7 @@ insert_constraint(Vertex_handle vaa, Vertex_handle vbb, OutputIterator out) class Less_edge - : public std::binary_function + : public CGAL::binary_function { public: Less_edge() {} diff --git a/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h b/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h index 082da6e19ad..01ec18bc00e 100644 --- a/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h +++ b/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h @@ -72,7 +72,7 @@ private: typedef Halfedge_const_handle EH; typedef std::vector EHs; - class Less_edge: public std::binary_function { + class Less_edge: public CGAL::binary_function { const Geometry_traits_2* geom_traits; public: Less_edge() {} @@ -93,7 +93,7 @@ private: } }; - class Less_vertex: public std::binary_function { + class Less_vertex: public CGAL::binary_function { const Geometry_traits_2* geom_traits; public: Less_vertex() {} @@ -109,7 +109,7 @@ private: } }; - class Closer_edge: public std::binary_function { + class Closer_edge: public CGAL::binary_function { const Geometry_traits_2* geom_traits; Point_2 q; public: @@ -723,7 +723,7 @@ private: //functor to decide which vertex is swept earlier by the rotational sweeping //ray - class Is_swept_earlier:public std::binary_function { + class Is_swept_earlier:public CGAL::binary_function { const Point_2& q; const Geometry_traits_2* geom_traits; public: