swig/SWIG/Examples/test-suite/template_default_inherit.i
William S Fulton 0e7633162b Test case fix for ISO compliant compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-04 23:32:51 +00:00

25 lines
495 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 = A<C>::nindex) {}
};
%}
%template(A_int) A<int>;
%template(B_int) B<int>;