mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
Passing functor by const-reference allows to use lambdas as arguments.
This commit is contained in:
parent
44a79d05c8
commit
b464cf26bc
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ namespace sat {
|
||||||
public:
|
public:
|
||||||
aig_finder(solver& s);
|
aig_finder(solver& s);
|
||||||
~aig_finder() {}
|
~aig_finder() {}
|
||||||
void set(std::function<void (literal head, literal_vector const& ands)>& f) { m_on_aig = f; }
|
void set(std::function<void (literal head, literal_vector const& ands)> const& f) { m_on_aig = f; }
|
||||||
void set(std::function<void (literal head, literal cond, literal th, literal el)>& f) { m_on_if = f; }
|
void set(std::function<void (literal head, literal cond, literal th, literal el)> const& f) { m_on_if = f; }
|
||||||
void operator()(clause_vector& clauses);
|
void operator()(clause_vector& clauses);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue