Multiple parameter packs in a single function?
问题 I'm trying to create a function that takes two parameter packs of objects. There are two templated base classes and I'd like to pass instances of derived classes to this function. Consider this example. template <int N> struct First {}; template <int N> struct Second {}; // there are a few of these struct FirstImpl : First<5> {}; struct SecondImpl : Second<7> {}; template <int... firstInts, int... secondInts> void function(float f, First<firstInts> &... first, Second<secondInts> &... second)