clarify why we can't use Handle_for's default

This commit is contained in:
Sylvain Pion 2003-08-13 15:12:12 +00:00
parent 9587c6ddc2
commit a5ef97c2a5
2 changed files with 4 additions and 6 deletions

View File

@ -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<Gmpq_rep>
{
@ -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)) {}

View File

@ -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)