Recently I asked this question but now I would like to expand it. I wrote the following class:
template class X{ public: vector v;
template X(T n, Rest... rest) { add(rest...); } //Just another member function template void add(T n) { v.push_back(n); } template void add(T n, Rest... rest) { v.push_back(n); add(rest...); }