%module template_default_arg %warnfilter(801) hi; /* Ruby, wrong class name */ %inline %{ template struct Hello { typedef unsigned int size_type; // This works // Hello(size_type n = Hello::size_type(0) ) { } // This doesn't Hello(size_type n = size_type(0) ) { } }; %} %template(Hello_int) Hello; %inline %{ struct hi : Hello { hi(size_type n) : Hello(n) { } }; %}