3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00
This commit is contained in:
Nikolaj Bjorner 2020-07-25 11:54:05 -07:00
parent 963daab268
commit 1059f6d3b8
2 changed files with 3 additions and 3 deletions

View file

@ -30,8 +30,8 @@ public:
mpq(int v):m_num(v), m_den(1) {}
mpq():m_den(1) {}
mpq(mpq &&) noexcept = default;
mpq & operator=(mpq const &) noexcept = default;
mpq & operator=(mpq&&) noexcept = default;
mpq & operator=(mpq const &) = default;
mpq & operator=(mpq&&) = default;
void swap(mpq & other) { m_num.swap(other.m_num); m_den.swap(other.m_den); }
mpz const & numerator() const { return m_num; }
mpz const & denominator() const { return m_den; }

View file

@ -40,7 +40,7 @@ public:
rational() {}
rational(rational const & r) { m().set(m_val, r.m_val); }
rational(rational&&) noexcept = default;
rational(rational&&) = default;
explicit rational(int n) { m().set(m_val, n); }