diff options
-rw-r--r-- | gruel/src/swig/pmt_swig.i | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i index 54b50660d..6435e03cc 100644 --- a/gruel/src/swig/pmt_swig.i +++ b/gruel/src/swig/pmt_swig.i @@ -36,7 +36,12 @@ using namespace pmt; %} +// Template intrusive_ptr for Swig to avoid dereferencing issues +class pmt_base; +%import <intrusive_ptr.i> +%template(swig_int_ptr) boost::intrusive_ptr<pmt_base>; +typedef boost::intrusive_ptr<pmt_base> pmt_t; /* * ------------------------------------------------------------------------ |