mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
minor code simplifications
This commit is contained in:
parent
08bf7a6293
commit
d5d77dfe64
4 changed files with 6 additions and 18 deletions
|
@ -20,10 +20,6 @@ Revision History:
|
|||
#include "util/warning.h"
|
||||
#include "util/z3_exception.h"
|
||||
|
||||
template<bool SYNCH>
|
||||
mpq_manager<SYNCH>::mpq_manager() {
|
||||
}
|
||||
|
||||
template<bool SYNCH>
|
||||
mpq_manager<SYNCH>::~mpq_manager() {
|
||||
del(m_tmp1);
|
||||
|
|
|
@ -115,7 +115,7 @@ public:
|
|||
static bool precise() { return true; }
|
||||
static bool field() { return true; }
|
||||
|
||||
mpq_manager();
|
||||
mpq_manager() = default;
|
||||
|
||||
~mpq_manager();
|
||||
|
||||
|
|
|
@ -138,21 +138,15 @@ public:
|
|||
m().set(m_val, r.m_val);
|
||||
return *this;
|
||||
}
|
||||
private:
|
||||
rational & operator=(bool) {
|
||||
UNREACHABLE(); return *this;
|
||||
}
|
||||
inline rational operator*(bool r1) const {
|
||||
UNREACHABLE();
|
||||
return *this;
|
||||
}
|
||||
|
||||
public:
|
||||
rational & operator=(bool) = delete;
|
||||
rational operator*(bool r1) const = delete;
|
||||
|
||||
rational & operator=(int v) {
|
||||
m().set(m_val, v);
|
||||
return *this;
|
||||
}
|
||||
rational & operator=(double v) { UNREACHABLE(); return *this; }
|
||||
rational & operator=(double v) = delete;
|
||||
|
||||
friend inline rational numerator(rational const & r) { rational result; m().get_numerator(r.m_val, result.m_val); return result; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue