c++ - other method to implement varargs -


i have write method, takes in parameters 1, 2, 3 ....or 32 integers. call call mthod f f(1) f(1,5) f(1,2,6,16,32) ... have export method swig, used after in langage. best manner had found, use varargs f(number,...) think swig doesn't support such functions export.

the other way use surcharge f(int) f(int,int) f(int,int,int) .... , write 32 times

is there better way it? (with templates of #define preprocessor macros)

thx


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -