I was wondering, why parameter pack expansion is so limited in C++11 - is it just oversight in C++11 standard? Why is it not possible to do just bar(args)...;?
bar(args)...;
The reference mentions the different contexts in which parameter pack expansions are allowed. So, a slightly more succinct way of doing this is
auto a = {bar(args)...};
This won't work if the return type of bar is void.