int z = 0;
pcrecpp::Arg arg0 = &matches[z];
args[z++] = &arg0;
This is repeated 10 times if the argument count is 10. For 20 arguments this snippet is repeated 20 times.
Is there no other way to do this?
The reason for that question is that I want to use a dynamic count of arguments (e.g.: 5, 50 ... 500)