3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-04 10:20:23 +00:00

remove unneeded constructors (last round)

This commit is contained in:
Nuno Lopes 2020-07-12 17:41:57 +01:00
parent 44ec259c4c
commit bb26f219fe
37 changed files with 65 additions and 276 deletions

View file

@ -40,7 +40,7 @@ public:
rational() {}
rational(rational const & r) { m().set(m_val, r.m_val); }
rational(rational&&) = default;
rational(rational&&) noexcept = default;
explicit rational(int n) { m().set(m_val, n); }
@ -131,7 +131,9 @@ public:
rational const & get_rational() const { return *this; }
rational const & get_infinitesimal() const { return m_zero; }
rational & operator=(rational&&) = default;
rational & operator=(rational const & r) {
m().set(m_val, r.m_val);
return *this;