/trunk/Examples/test-suite/errors/cpp_shared_ptr.i
Swig | 29 lines | 20 code | 9 blank | 0 comment | 0 complexity | 12ab364633c734437c464b4edadadcd7 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %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() {}
- };
- %}