Fix template template parameters with default arguments

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-12-06 22:35:43 +00:00
commit 8f09d00bb0
5 changed files with 76 additions and 1 deletions

View file

@ -4432,10 +4432,13 @@ parm : rawtype parameter_declarator {
}
}
| TEMPLATE LESSTHAN cpptype GREATERTHAN cpptype idcolon {
| TEMPLATE LESSTHAN cpptype GREATERTHAN cpptype idcolon def_args {
$$ = NewParm(NewStringf("template<class> %s %s", $5,$6), 0);
Setfile($$,cparse_file);
Setline($$,cparse_line);
if ($7.val) {
Setattr($$,"value",$7.val);
}
}
| PERIOD PERIOD PERIOD {
SwigType *t = NewString("v(...)");