From fc0b3acb6b2e00ffbec79aa59ed93ee42dded083 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 10 Nov 2006 23:14:37 +0000 Subject: [PATCH] Fix #1593291 - Smart pointers and inheriting from templates git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9542 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/smart_pointer_inherit.i | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Examples/test-suite/smart_pointer_inherit.i b/Examples/test-suite/smart_pointer_inherit.i index 706674625..5c1f3ce43 100644 --- a/Examples/test-suite/smart_pointer_inherit.i +++ b/Examples/test-suite/smart_pointer_inherit.i @@ -41,3 +41,26 @@ %template(SmartBase) hi::SmartPtr; %template(SmartDerived) hi::SmartPtr; + + +%include std_vector.i + +%inline %{ +class itkLevelSetNodeUS2 { +}; +%} + +%template(vectorLevelSetNodeUS2) std::vector< itkLevelSetNodeUS2 >; + + +%inline %{ +class itkVectorContainerUILSNUS2 : public std::vector< itkLevelSetNodeUS2 > { +}; + +class itkVectorContainerUILSNUS2_Pointer { + public: + itkVectorContainerUILSNUS2 * operator->() const { return 0; } +}; + +%} +