Consider I have a variadic template with int...
parameters. For example a function like this:
template<int... t>
int add(){
return t... + ???
}
All the method should do is adding all the parameters. It can be easily achieved using recursive variadic templates. However, is it also possible expressing this (or something similar like using other binary operators to aggregate all the template parameters) using parameter pack expansion?