diff --git a/Number_types/include/CGAL/Lazy_exact_nt.h b/Number_types/include/CGAL/Lazy_exact_nt.h index c35c414d1ad..4ecb6ca4202 100644 --- a/Number_types/include/CGAL/Lazy_exact_nt.h +++ b/Number_types/include/CGAL/Lazy_exact_nt.h @@ -21,6 +21,11 @@ #ifndef CGAL_LAZY_EXACT_NT_H #define CGAL_LAZY_EXACT_NT_H +#define CGAL_int(T) typename First_if_different::Type +#define CGAL_double(T) typename First_if_different::Type +#define CGAL_To_interval(T) CGAL::To_interval + + #include #include #include @@ -259,9 +264,9 @@ public: // Abstract base representation class for lazy numbers template struct Lazy_exact_rep : public Lazy_construct_rep, - ET, typename Real_embeddable_traits::To_interval > + ET, CGAL_To_interval(ET) > { - typedef Lazy_construct_rep, ET, typename Real_embeddable_traits::To_interval > Base; + typedef Lazy_construct_rep, ET, CGAL_To_interval(ET) > Base; Lazy_exact_rep (const Interval_nt & i) : Base(i) {} @@ -517,9 +522,6 @@ struct Lazy_exact_Max : public Lazy_exact_binary } }; -#define CGAL_int(T) typename First_if_different::Type -#define CGAL_double(T) typename First_if_different::Type - // The real number type, handle class template class Lazy_exact_nt @@ -534,7 +536,7 @@ public: private: typedef Lazy_exact_nt Self; - typedef Lazy_construct_rep< Interval_nt, ET, typename Real_embeddable_traits::To_interval > Self_rep; + typedef Lazy_construct_rep< Interval_nt, ET, To_interval > Self_rep; public : @@ -1417,6 +1419,7 @@ public: #undef CGAL_double #undef CGAL_int +#undef CGAL_To_interval CGAL_END_NAMESPACE