mirror of
https://github.com/Z3Prover/z3
synced 2026-07-04 06:16:09 +00:00
Disable operator== for lar_term
The operator== for lar_term was never intended to be used. This changes physically disables it to identify what happens to depend on the operator.
This commit is contained in:
parent
fe100e7865
commit
81f242e45f
1 changed files with 2 additions and 2 deletions
|
|
@ -129,8 +129,8 @@ public:
|
||||||
add_monomial(a, v1);
|
add_monomial(a, v1);
|
||||||
add_monomial(b, v2);
|
add_monomial(b, v2);
|
||||||
}
|
}
|
||||||
bool operator==(const lar_term & a) const { return false; } // take care not to create identical terms
|
bool operator==(const lar_term & a) const = delete; // take care not to create identical terms
|
||||||
bool operator!=(const lar_term & a) const { return ! (*this == a);}
|
bool operator!=(const lar_term & a) const = delete;
|
||||||
// some terms get used in add constraint
|
// some terms get used in add constraint
|
||||||
// it is the same as the offset in the m_constraints
|
// it is the same as the offset in the m_constraints
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue