Skip to content
Snippets Groups Projects
Commit 72b7a918 authored by ilor's avatar ilor
Browse files

fix gcc compile error (cannot call foo(&v) with v)

parent f5a1115d
Branches
No related merge requests found
...@@ -17,7 +17,9 @@ void MatchRule::apply(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) ...@@ -17,7 +17,9 @@ void MatchRule::apply(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s)
if (!apply_) { if (!apply_) {
return; // no-op (default) version return; // no-op (default) version
} }
apply_->execute(ActionExecContext(SentenceContext(s), variables_)); SentenceContext sc(s);
ActionExecContext aec(sc, variables_);
apply_->execute(aec);
} }
std::string MatchRule::to_string(const Corpus2::Tagset &tagset) const std::string MatchRule::to_string(const Corpus2::Tagset &tagset) const
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment