I have started learning templates in c++, and i would like to make a class that has a variable number of variables of a templated class. In other words, I have a class A
template<typename T>
class A;
Now I would like to make a class B such that the class would be instantiated like so:
B<A<int>(1), A<float>(2.4f), A<bool>(false),....>();
I managed to make a pretty strightforward templated function that does the same thing, like this:
template<typename C>
void test(A<C> args...) {}
test(A<int>(1), A<bool>(true),...) // works fine
Is it possible to do it with a class, and if so, how? Thanks in advance!