Skip to content

Commit

Permalink
Required API change for new pattern matcher
Browse files Browse the repository at this point in the history
Requiered by poll req opencog/atomspace#2571
  • Loading branch information
linas committed May 5, 2020
1 parent 1068be7 commit d65c012
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opencog/attentionbank/bank/AFImplicator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ Handle af_bindlink(AtomSpace* as, const Handle& hbindlink)
// The result_list contains a list of the grounded expressions.
// (The order of the list has no significance, so it's really a set.)
// Put the set into a SetLink, cache it, and return that.
HandleSeq hs;
for (const auto& v: impl.get_result_set())
hs.push_back(HandleCast(v));
QueueValuePtr qv(impl.get_result_queue());
HandleSeq hs(qv->to_handle_seq());
Handle rewr(createUnorderedLink(std::move(hs), SET_LINK));
return as->add_atom(rewr);
}
Expand Down

0 comments on commit d65c012

Please sign in to comment.