Add ability to suppress variadic template first argumnet warning

This commit is contained in:
William S Fulton 2013-02-05 07:17:54 +00:00
commit dbf4821b18

View file

@ -2967,7 +2967,9 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
p = tp;
def_supplied = 1;
} else if (p && !tp) { /* Variadic template - tp < p */
SWIG_WARN_NODE_BEGIN(nn);
Swig_warning(WARN_CPP11_VARIADIC_TEMPLATE,cparse_file, cparse_line,"Only the first variadic template argument is currently supported.\n");
SWIG_WARN_NODE_END(nn);
break;
}
}