From a5ef97c2a5571e90a0207bf84eb0fe7066e4ed72 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Wed, 13 Aug 2003 15:12:12 +0000 Subject: [PATCH] clarify why we can't use Handle_for's default --- Packages/Number_types/include/CGAL/Gmpq.h | 8 +++----- Packages/Number_types/include/CGAL/Gmpz.h | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Packages/Number_types/include/CGAL/Gmpq.h b/Packages/Number_types/include/CGAL/Gmpq.h index 601486ecbcc..407271cfc27 100644 --- a/Packages/Number_types/include/CGAL/Gmpq.h +++ b/Packages/Number_types/include/CGAL/Gmpq.h @@ -115,13 +115,12 @@ public: mpq_canonicalize(mpQ); } - Gmpq_rep(double d) { mpq_init(mpQ); mpq_set_d(mpQ, d); -} + } Gmpq_rep(const char * const str) { @@ -141,7 +140,7 @@ public: { mpq_clear(mpQ); } }; -//__________________________________________________ + class Gmpq : public Handle_for { @@ -152,13 +151,12 @@ public: typedef Tag_false Has_sqrt; - Gmpq() + Gmpq() // {} we can't do that since the non-const mpq() is called. : Base(Gmpq_rep()) {} Gmpq(const mpq_t z) : Base(Gmpq_rep(z)) {} - Gmpq(int n) : Base(Gmpq_rep(n)) {} diff --git a/Packages/Number_types/include/CGAL/Gmpz.h b/Packages/Number_types/include/CGAL/Gmpz.h index 48a078759c1..37b93c82791 100644 --- a/Packages/Number_types/include/CGAL/Gmpz.h +++ b/Packages/Number_types/include/CGAL/Gmpz.h @@ -94,7 +94,7 @@ public: typedef Tag_false Has_division; typedef Tag_true Has_sqrt; - Gmpz() + Gmpz() // {} we can't do that since the non-const mpz() is called. : Base(Gmpz_rep()) {} Gmpz(const mpz_t z)