The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6fcc22a1f8
commit
516036631c
1508 changed files with 125983 additions and 44037 deletions
25
SWIG/Examples/test-suite/template_default_inherit.i
Normal file
25
SWIG/Examples/test-suite/template_default_inherit.i
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
%module template_default_inherit
|
||||
|
||||
%warnfilter(801) A::nindex; /* Ruby, wrong constant name */
|
||||
|
||||
%inline %{
|
||||
template <class C>
|
||||
struct A
|
||||
{
|
||||
typedef unsigned int size_type;
|
||||
static const size_type nindex = static_cast<size_type>(-1);
|
||||
|
||||
};
|
||||
|
||||
template <class C>
|
||||
struct B : A<C>
|
||||
{
|
||||
typedef typename A<C>::size_type size_type;
|
||||
void say_hi(size_type index = nindex) {}
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%template(A_int) A<int>;
|
||||
%template(B_int) B<int>;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue