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:
Dave Beazley 2002-11-30 22:01:28 +00:00
commit 516036631c
1508 changed files with 125983 additions and 44037 deletions

View 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>;