blob: edbd0cf879929bbe66b4f72d41226b8782ad66a8 [file] [log] [blame]
%module cpp_shared_ptr
%include <boost_shared_ptr.i>
%shared_ptr(B);
%shared_ptr(C);
%inline %{
#include <stdio.h>
#include <boost/shared_ptr.hpp>
struct A {
virtual ~A() {}
};
struct B {
virtual ~B() {}
};
struct C : B, A {
virtual ~C() {}
};
struct D : C {
virtual ~D() {}
};
%}