diff --git a/opencog/attentionbank/bank/AFImplicator.cc b/opencog/attentionbank/bank/AFImplicator.cc index 4b7541d..32b334e 100644 --- a/opencog/attentionbank/bank/AFImplicator.cc +++ b/opencog/attentionbank/bank/AFImplicator.cc @@ -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); }