mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
Passing functor by const-reference allows to use lambdas as arguments.
This commit is contained in:
parent
44a79d05c8
commit
b464cf26bc
|
@ -53,8 +53,8 @@ namespace sat {
|
|||
public:
|
||||
aig_finder(solver& s);
|
||||
~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 cond, literal th, literal el)>& f) { m_on_if = 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)> const& f) { m_on_if = f; }
|
||||
void operator()(clause_vector& clauses);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue