fixes for templates and template default args, cosmetics, and other fixes for OSS

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-16 02:12:05 +00:00
commit 0ac8253c3f
20 changed files with 615 additions and 271 deletions

View file

@ -3322,8 +3322,10 @@ cpp_template_decl : TEMPLATE LESSTHAN template_parms GREATERTHAN { template_para
} else {
/* Need to resolve exact specialization name */
/* add default args from generic template */
String *fname = Swig_cparse_template_deftype(tname,0);
String *ty = Swig_symbol_template_deftype(tname,0);
String *fname = Swig_symbol_type_qualify(ty,0);
Swig_symbol_cadd(fname,$$);
Delete(ty);
}
} else if ($$) {
Setattr($$,"templatetype",nodeType($6));