Is it possible to “store” a template parameter pack without expanding it?
Another approach, which is slightly more generic than Ben’s, is as follows: #include <tuple> template <typename… Args> struct variadic_typedef { // this single type represents a collection of types, // as the template arguments it took to define it }; template <typename… Args> struct convert_in_tuple { // base case, nothing special, // just use the … Read more