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
This commit is contained in:
parent
7577d0ad70
commit
fc0b3acb6b
1 changed files with 23 additions and 0 deletions
|
|
@ -41,3 +41,26 @@
|
|||
%template(SmartBase) hi::SmartPtr<hi::Base>;
|
||||
%template(SmartDerived) hi::SmartPtr<hi::Derived>;
|
||||
|
||||
|
||||
|
||||
%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; }
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue