add a switch for the gmp backend

This commit is contained in:
Sébastien Loriot 2021-10-14 15:14:38 +02:00
parent 64a64e1a8a
commit 4ede33059b
2 changed files with 8 additions and 0 deletions

View File

@ -32,7 +32,11 @@
namespace CORE {
#ifdef CGAL_CORE_USE_GMP_BACKEND
typedef boost::multiprecision::mpz_int Z;
#else
typedef boost::multiprecision::cpp_int Z;
#endif

View File

@ -29,7 +29,11 @@
namespace CORE {
#ifdef CGAL_CORE_USE_GMP_BACKEND
typedef boost::multiprecision::mpq_rational Q;
#else
typedef boost::multiprecision::cpp_rational Q;
#endif
class BigRatRep : public RCRepImpl<BigRatRep> {
public: