From edcd2978292c9b642cef06ef8a237feae978f3e2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 3 Jun 2004 22:57:27 +0000 Subject: [PATCH] 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 --- Source/Swig/cwrap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Swig/cwrap.c b/Source/Swig/cwrap.c index 7655f21e2..171a4baac 100644 --- a/Source/Swig/cwrap.c +++ b/Source/Swig/cwrap.c @@ -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) {