mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
#4582 again
This commit is contained in:
parent
963daab268
commit
1059f6d3b8
|
@ -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; }
|
||||
|
|
|
@ -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); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue