mirror of
https://github.com/Z3Prover/z3
synced 2025-08-13 06:30:54 +00:00
remove a few more copy constructors, though still not enough to enable the assertion in vector
I give up for now; there are too many copies left for little return..
This commit is contained in:
parent
e2b2b7f82e
commit
e844aef896
17 changed files with 44 additions and 95 deletions
|
@ -16,8 +16,7 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef INF_S_INTEGER_H_
|
||||
#define INF_S_INTEGER_H_
|
||||
#pragma once
|
||||
|
||||
#include "util/s_integer.h"
|
||||
#include "util/rational.h"
|
||||
|
@ -47,8 +46,6 @@ class inf_s_integer {
|
|||
|
||||
inf_s_integer():m_first(0), m_second(0) {}
|
||||
|
||||
inf_s_integer(const inf_s_integer & r):m_first(r.m_first), m_second(r.m_second) {}
|
||||
|
||||
explicit inf_s_integer(int n):m_first(n), m_second(0) {}
|
||||
explicit inf_s_integer(int n, int d): m_first(n), m_second(0) { SASSERT(d == 1); }
|
||||
explicit inf_s_integer(s_integer const& r, bool pos_inf):m_first(r.get_int()), m_second(pos_inf ? 1 : -1) {}
|
||||
|
@ -345,7 +342,3 @@ inline inf_s_integer abs(const inf_s_integer & r) {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
#endif /* INF_S_INTEGER_H_ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue