From 72b7a9186640bbef9b5231a5cc27e5d58c9973e2 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Thu, 21 Apr 2011 14:44:00 +0200
Subject: [PATCH] fix gcc compile error (cannot call foo(&v) with v)

---
 libwccl/ops/matchrule.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libwccl/ops/matchrule.cpp b/libwccl/ops/matchrule.cpp
index cc2d3af..cb4b8b3 100644
--- a/libwccl/ops/matchrule.cpp
+++ b/libwccl/ops/matchrule.cpp
@@ -17,7 +17,9 @@ void MatchRule::apply(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s)
 	if (!apply_) {
 		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
-- 
GitLab