PageRenderTime 29ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. %module cpp_shared_ptr
  2. %include <boost_shared_ptr.i>
  3. %shared_ptr(B);
  4. %shared_ptr(C);
  5. %inline %{
  6. #include <stdio.h>
  7. #include <boost/shared_ptr.hpp>
  8. struct A {
  9. virtual ~A() {}
  10. };
  11. struct B {
  12. virtual ~B() {}
  13. };
  14. struct C : B, A {
  15. virtual ~C() {}
  16. };
  17. struct D : C {
  18. virtual ~D() {}
  19. };
  20. %}