I want to expand a paramter pack into a function call, like this:
func(get_value(arg)...);
where func and get_value are two functions. The question is that get_value is sensitive to evaluation order, so I think one solution is to generate something like this:
func(get_value(arg0, 0), get_value(arg1, 1), get_value(arg2, 2));
if, for example, there're three parameters. With this counter I'll know the evaluation order. This there a way to do so?
Or as another solution, is there a way to simply specify the evaluation order of those calls to get_value with args? (If so, I don't even need a counter.)