diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2023-02-18 12:47:34 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2023-02-18 14:16:29 +0000 |
commit | 1341df17fb463b472e8d199627f36df8ff617fab (patch) | |
tree | 5967f7a4f5fe1cc2bd0e14b4cce9e18cc0f94271 /Examples/test-suite | |
parent | 63bf998b30cfac572dd368dc9d66bfb00b86fc52 (diff) | |
download | swig-1341df17fb463b472e8d199627f36df8ff617fab.tar.gz |
Improved variadic parameter names expansion
Number the variadic parm names instead of not naming them.
Such as:
template<typename... T> int variadicmix1(T... t) { return 20; }
%template(variadicmix1) variadicmix1<A,B,C>;
Used to expand to:
int variadicmix1(A T, B arg1, C arg2)
now:
int variadicmix1(A t1, B t2, C t3)
Also test for generating duplicate parameter names which required
a fix in R. Also results in a few minor changes to parameter names
in generated R code.
Diffstat (limited to 'Examples/test-suite')
-rw-r--r-- | Examples/test-suite/cpp11_variadic_templates.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/test-suite/cpp11_variadic_templates.i b/Examples/test-suite/cpp11_variadic_templates.i index 1caf82463..935c2f2f9 100644 --- a/Examples/test-suite/cpp11_variadic_templates.i +++ b/Examples/test-suite/cpp11_variadic_templates.i @@ -201,7 +201,7 @@ template <typename... V> struct VariadicParms { %inline %{ template <typename... V> struct FixedAndVariadicParms { public: - void ParmsVal(short shortvar, V... vparms_v) {} + void ParmsVal(short samename1, V... samename) {} void ParmsPtr(short shortvar, V*... vparms_p) {} void ParmsPtrRef(short shortvar, V*&... vparms_pr) {} void ParmsPtrRValueRef(short shortvar, V*&&... vparms_rvr) {} |