fix(library/blast/backward/backward_rule_set.cpp): fully annotate the use of map2
Close #904
This commit is contained in:
parent
41ff4bc193
commit
ff8f24a29b
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ namespace lean {
|
|||
using blast::backward_rule;
|
||||
using blast::backward_rule_set;
|
||||
using blast::gexpr;
|
||||
using std::function;
|
||||
|
||||
static name * g_class_name = nullptr;
|
||||
static std::string * g_key = nullptr;
|
||||
|
@ -142,7 +143,7 @@ void backward_rule_set::for_each(std::function<void(head_index const & h, backwa
|
|||
list<gexpr> backward_rule_set::find(head_index const & h) const {
|
||||
list<backward_rule> const * rule_list = m_set.find(h);
|
||||
if (!rule_list) return list<gexpr>();
|
||||
return map2<gexpr>(*rule_list, [&](backward_rule const & r) { return r.get_proof(); });
|
||||
return map2<gexpr, backward_rule, function<gexpr(backward_rule)>>(*rule_list, [&](backward_rule const & r) { return r.get_proof(); });
|
||||
}
|
||||
|
||||
void initialize_backward_rule_set() {
|
||||
|
|
Loading…
Reference in a new issue