I want a method that returns an object with a modified parameter pack. For example, the Nth template parameter is increased by 1.
template<size_t... Ni>
struct Test
{
template<size_t Nth>
constexpr auto RunTest()
{
// What should be written here?
}
};
int main()
{
Test<2, 2, 2> t1;
Test<2, 3, 2> t2 = t1.RunTest<1>(); // How to make this work?
}