summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------PMC0
-rw-r--r--include/gras/sbuffer.i6
-rw-r--r--python/gras/GRAS_SBuffer.i2
3 files changed, 5 insertions, 3 deletions
diff --git a/PMC b/PMC
-Subproject bd2ee19161fc4e5dbe802858c7b8abe6ee3e83e
+Subproject 9370c57fb44b5388757dcf8ae1ffa6c0885b1e6
diff --git a/include/gras/sbuffer.i b/include/gras/sbuffer.i
index d8cadc6..fb1f40d 100644
--- a/include/gras/sbuffer.i
+++ b/include/gras/sbuffer.i
@@ -9,9 +9,11 @@
%}
////////////////////////////////////////////////////////////////////////
-// remove base class warning
+// comprehend base class
////////////////////////////////////////////////////////////////////////
-#pragma SWIG nowarn=401
+#define SWIG_INTRUSIVE_PTR_NAMESPACE boost
+%include <intrusive_ptr.i>
+%template (boost_intrusive_ptr_gras_sbuffer_impl) boost::intrusive_ptr<gras::SBufferImpl>;
////////////////////////////////////////////////////////////////////////
// Export swig element comprehension
diff --git a/python/gras/GRAS_SBuffer.i b/python/gras/GRAS_SBuffer.i
index 248bcc1..712949b 100644
--- a/python/gras/GRAS_SBuffer.i
+++ b/python/gras/GRAS_SBuffer.i
@@ -6,7 +6,7 @@
#include <PMC/PMC.hpp>
%}
-%include <PMC/PMC.i>
+%import <PMC/PMC.i>
DECL_PMC_SWIG_TYPE(gras::SBuffer, swig_sbuffer)