Basic C++ test of very simple template class instantiation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
698d1851c3
commit
2dac491434
1 changed files with 12 additions and 0 deletions
12
Examples/test-suite/cpp_basic_template_class.i
Normal file
12
Examples/test-suite/cpp_basic_template_class.i
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
%module cpp_basic_template_class
|
||||
|
||||
%inline
|
||||
{
|
||||
|
||||
template<typename T> struct MyTemplateClass {
|
||||
T someMemberVariable;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
%template(MyTemplateClass_Int) MyTemplateClass<int>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue