From bdbbc5dbdd844aac6e397d3cab404c6ce7899cf6 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 13:08:15 +0200
Subject: [PATCH] (swig) Wccl::Variables fixed

---
 swig/libcclvariables.i | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/swig/libcclvariables.i b/swig/libcclvariables.i
index 24d6d74..642100d 100644
--- a/swig/libcclvariables.i
+++ b/swig/libcclvariables.i
@@ -16,6 +16,14 @@
 %include "std_string.i"
 %include "boost_shared_ptr.i"
 
+%template(ValuePtr) boost::shared_ptr<Wccl::Value>;
+%template(BoolPtr) boost::shared_ptr<Wccl::Bool>;
+%template(PositionPtr) boost::shared_ptr<Wccl::Position>;
+%template(StrSetPtr) boost::shared_ptr<Wccl::StrSet>;
+%template(TSetPtr) boost::shared_ptr<Wccl::TSet>;
+%template(MatchPtr) boost::shared_ptr<Wccl::Match>;
+%template(VariablesPtr) boost::shared_ptr<Wccl::Variables>;
+
 namespace Wccl {
   /* ----------------------------------------------------------------------- */
   /* Helper detail class */
@@ -48,13 +56,13 @@ namespace Wccl {
 
   /* ----------------------------------------------------------------------- */
   /* Variables */
-  class Variables : 
+  class Variables /*: 
     detail::Vmap<Value>, 
     detail::Vmap<Bool>, 
     detail::Vmap<Position>, 
     detail::Vmap<StrSet>, 
     detail::Vmap<TSet>, 
-    detail::Vmap<Match>
+    detail::Vmap<Match> */
   {
   public:
     Variables();
@@ -153,8 +161,6 @@ namespace Wccl {
   };
 }
 
-%template(VariablesSharedPtr) boost::shared_ptr<Wccl::Variables>;
-
 using namespace boost;
 using namespace std;
 using namespace Wccl;
-- 
GitLab