more tricky warning about non-initialized base in copy-ctor : I choose to simply keep the current behavior

This commit is contained in:
Sylvain Pion 2007-03-03 13:26:48 +00:00
parent 319a47e445
commit 9561ae3fa8
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,8 @@ public:
BigIntRep() {
mpz_init(mp);
}
BigIntRep(const BigIntRep& z) {
// Note : should the copy-ctor be alloed at all ? [Sylvain Pion]
BigIntRep(const BigIntRep& z) : RCRepImpl<BigIntRep>() {
mpz_init_set(mp, z.mp);
}
BigIntRep(signed char c) {

View File

@ -43,7 +43,8 @@ public:
BigRatRep() {
mpq_init(mp);
}
BigRatRep(const BigRatRep& z) {
// Note : should the copy-ctor be alloed at all ? [Sylvain Pion]
BigRatRep(const BigRatRep& z) : RCRepImpl<BigRatRep>() {
mpq_init(mp);
mpq_set(mp, z.mp);
}