rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.17k stars 439 forks source link

a problem when use invoke_variadic #283

Open babyaaaaaa opened 4 years ago

babyaaaaaa commented 4 years ago

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?