Added error message for using %template with qualified names inside of

a namespace.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-09-30 18:57:45 +00:00
commit 603a9e5076

View file

@ -1849,6 +1849,13 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
}
}
if (ns && Namespaceprefix) {
Swig_error(cparse_file,cparse_line,
"Can't instantiate template '%s' inside namespace '%s'.\n"
"Suggest moving %%template outside the namespace.\n", $5, Namespaceprefix);
}
/* Create namespace nodes to enclose the template declaration */
if (ns) {
List *scopes;