new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
03658fcb4c
commit
335cd09555
2 changed files with 25 additions and 0 deletions
|
|
@ -176,6 +176,7 @@ CPP_TEST_CASES += \
|
|||
template_default2 \
|
||||
template_default_inherit \
|
||||
template_default_qualify \
|
||||
template_default_vw \
|
||||
template_enum \
|
||||
template_enum_ns_inherit \
|
||||
template_enum_typedef \
|
||||
|
|
|
|||
24
Examples/test-suite/template_default_vw.i
Normal file
24
Examples/test-suite/template_default_vw.i
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
%module template_default_vw
|
||||
|
||||
%inline %{
|
||||
class SomeClass{ };
|
||||
|
||||
template<class T>
|
||||
class Handle {
|
||||
public:
|
||||
Handle( T* t=0 ) { };
|
||||
// ...
|
||||
};
|
||||
|
||||
typedef Handle<SomeClass> hSomeClass;
|
||||
class AnotherClass {
|
||||
public:
|
||||
void someFunc( hSomeClass a = hSomeClass() ) { };
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%template() Handle<SomeClass>;
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue