From ca9f54a0de7a831d829caa98450fdfa020d260d0 Mon Sep 17 00:00:00 2001 From: Michael Hemmer Date: Mon, 30 Oct 2006 09:41:44 +0000 Subject: [PATCH] switch back to usage of CGAL::To_interval for backward compatibility --- Number_types/include/CGAL/Lazy_exact_nt.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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