Add the use of LEDA as exact type in case we do not use GMP

This commit is contained in:
Andreas Fabri 2013-03-15 14:46:20 +01:00
parent 02bb200fe5
commit fc6fed9ee1
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,7 @@
namespace CGAL {
// Epeck_ft is either Gmpq of Quotient<MP_float>
// Epeck_ft is either Gmpq, or leda_rational, or Quotient<MP_float>
typedef internal::Exact_type_selector<double>::Type Epeck_ft;
// The following are redefined kernels instead of simple typedefs in order to shorten

View File

@ -55,12 +55,14 @@ namespace CGAL { namespace internal {
// A class which tells the prefered "exact number type" corresponding to a type.
// The default template chooses Gmpq or Quotient<MP_Float>.
// The default template chooses Gmpq, or leda_rational, or Quotient<MP_Float>.
// It should support the built-in types.
template < typename >
struct Exact_type_selector
#ifdef CGAL_USE_GMP
{ typedef Gmpq Type; };
#elif defined(CGAL_USE_LEDA)
{ typedef leda_rational Type; };
#else
{ typedef Quotient<MP_Float> Type; };
#endif