mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
change to const qualifier on constructor
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
792bf6c10b
commit
0c32989144
|
@ -60,7 +60,7 @@ namespace opt {
|
|||
expr_ref s;
|
||||
rational weight;
|
||||
bool is_true;
|
||||
soft(expr_ref& s, rational const& w, bool t): s(s), weight(w), is_true(t) {}
|
||||
soft(expr_ref const& s, rational const& w, bool t): s(s), weight(w), is_true(t) {}
|
||||
soft(soft const& other):s(other.s), weight(other.weight), is_true(other.is_true) {}
|
||||
soft& operator=(soft const& other) { s = other.s; weight = other.weight; is_true = other.is_true; return *this; }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue