hi, I want to use invoke_variadic like this :
std::vector<> args;
for(int var = 0; var < 3; ++var) {
args.push_back(var);
}
auto ret = meth.invoke_variadic(obj, args);
then I found the all elems in args is 2, is it must use like this :
int a = 0, b = 1, c =2;
args.push_back(a);
args.push_back(b);
args.push_back(c);
but you know in application the var is usually dynamic,so what should i do?
hi, I want to use invoke_variadic like this : std::vector<> args;
for(int var = 0; var < 3; ++var) {
args.push_back(var);
}
auto ret = meth.invoke_variadic(obj, args);
then I found the all elems in args is 2, is it must use like this :
int a = 0, b = 1, c =2;
args.push_back(a);
args.push_back(b);
args.push_back(c);
but you know in application the var is usually dynamic,so what should i do?