From a292d9b236358c742f177988cadabfe2fc096467 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl>
Date: Fri, 6 May 2011 12:31:08 +0200
Subject: [PATCH] (swig) Wccl::FunctionalOperator fixed

---
 swig/libcclfunctionaloperator.i | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/swig/libcclfunctionaloperator.i b/swig/libcclfunctionaloperator.i
index a36c72d..8480295 100644
--- a/swig/libcclfunctionaloperator.i
+++ b/swig/libcclfunctionaloperator.i
@@ -14,10 +14,14 @@
 %include "std_string.i"
 %include "boost_shared_ptr.i"
 
+%template(ValuePtr) boost::shared_ptr<Wccl::Value>;
+
 namespace Wccl {
   class FunctionalOperator : public ParsedExpression {
   public:
-    // virtual boost::shared_ptr<const Value> base_apply(const SentenceContext& sc) = 0;
+    virtual boost::shared_ptr<const Value> base_apply(const SentenceContext& sc) = 0;
+
+    /* --------------------------------------------------------------------- */
     boost::shared_ptr<FunctionalOperator> clone_ptr() const;
     boost::shared_ptr<FunctionalOperator> clone_clean_ptr() const;
 
@@ -27,8 +31,6 @@ namespace Wccl {
   };
 }
 
-%template (FunctionalOperatorSharedPtr) boost::shared_ptr<Wccl::FunctionalOperator>;
-
 using namespace boost;
 using namespace std;
 using namespace Wccl;
-- 
GitLab