You are not logged in.
I have a function called functionB with a variable number of arguments; in its implementation I want to call functionA with the same arguments passed to functionB, but I don't know the syntax (or even if it's possible at all):
int functionA(string s, ...){
<do some work here>
}
int functionB(string s, ...){
return functionA(s, <what should I put here?>);
}
Thanks for the help.
Offline
Offline
Maybe variadic templates could be a solution for you?
Offline
Sadly we don't mandate a C++11 compiler, so vardiadic templates are not a feasible solution. But yes, they could have been.
Offline