mirror of https://github.com/CGAL/cgal
Add the use of LEDA as exact type in case we do not use GMP
This commit is contained in:
parent
02bb200fe5
commit
fc6fed9ee1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue