Suppose I have a template which is parametrized by a class type and a number of argument types. a set of arguments matching these types are stored in a tuple. How can one pa
C++14 will add standard support for index_sequence:
index_sequence
template struct foo { tuple args; T gen() { return gen_impl(std::index_sequence_for()); } private: template T gen_impl(std::index_sequence) { return T(std::get(args)...); } };