Hello, I have some templated function which has different number of arguments due to the template-type. This function is wrapped with macro definition.
#define SomeTemplate(TemplateType, Arguments) someFunc<TemplateType>(Arguments);
Everything is okay until I'm using only 1 argument for function calling. But I need in more. I looked at boost it does such things through definition of different macros, like:
#define TEMP_1(Arg1) someFunc<Template>(Arg1);
#define TEMP_2(Arg1, Arg2) someFunc<Template>(Arg1, Arg2);
#define TEMP_3(Arg1, Arg2, Arg3) someFunc<Template>(Arg1, Arg2, Arg3);
But this code marked as portable for compilres. There is way to use some defines with any number of arguments. How can I do that?