Split constructor in default and copy constructor

This commit is contained in:
Andreas Fabri 2014-03-18 16:27:54 +01:00
parent b75c4ccf3e
commit 2097f37ab7
1 changed files with 4 additions and 1 deletions

View File

@ -109,8 +109,11 @@ private:
}
public:
//! Default constructor
Algebraic_real_d_1() : Base(static_cast<const Base&>(get_default_instance())) {}
//! copy constructor: copy existing Algebraic_real_d_1 (shares rep)
Algebraic_real_d_1(const Self& p = get_default_instance()) : Base(static_cast<const Base&>(p)) {}
Algebraic_real_d_1(const Self& p) : Base(static_cast<const Base&>(p)) {}
//! creates the algebraic real from \a i.
Algebraic_real_d_1(int i ) : Base(Algebraic_real_rep_d_1(i)) { }