swig/SWIG/Examples/test-suite/template_default_inherit.i
Dave Beazley 516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

25 lines
489 B
OpenEdge ABL

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