/trunk/Examples/test-suite/errors/cpp_shared_ptr.i
# · Swig · 29 lines · 20 code · 9 blank · 0 comment · 0 complexity · 12ab364633c734437c464b4edadadcd7 MD5 · raw file
- %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() {}
- };
- %}