Patch to fix wrapping of templated methods. ISO compliant compilers, like
Comeau and GCC-3.4.0, don't like the template specifier that SWIG was generating when calling the method. This fix may break some non standard compliant compilers, for example, Sun workshop compilers prior to version 6.2.p2. Patch submitted by Bill Clarke. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2a623ea0b2
commit
edcd297829
1 changed files with 2 additions and 5 deletions
|
|
@ -306,11 +306,8 @@ Swig_cmethod_call(String_or_char *name, ParmList *parms, String_or_char *self) {
|
|||
Replaceall(func,"this", SwigType_rcaststr(pt, Swig_cparm_name(p,0)));
|
||||
}
|
||||
|
||||
if (SwigType_istemplate(name)) {
|
||||
Printf(func,"template %s(", nname);
|
||||
} else {
|
||||
Printf(func,"%s(", nname);
|
||||
}
|
||||
Printf(func,"%s(", nname);
|
||||
|
||||
i++;
|
||||
p = nextSibling(p);
|
||||
while (p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue