mirror of https://github.com/CGAL/cgal
more tricky warning about non-initialized base in copy-ctor : I choose to simply keep the current behavior
This commit is contained in:
parent
319a47e445
commit
9561ae3fa8
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue