I\'m trying to write a variadic template constexpr function which calculates sum of the template parameters given. Here\'s my code:
constexpr
template<
Just sum it up the usual way.
template constexpr int f() { int sum = 0; for(int i : { Args... }) sum += i; return sum; }