How can I alias “away” a template parameter that is not used for a template specialization?
I have a template class template <typename T, int I, typename S> struct foo. This class can be nested like so: foo<foo<void, 1, void>, 1, void>. The only parameter that takes a foo struct is the first one typename T I cannot change the order of the parameters The issue I am having is that […]
How can I alias “away” a template parameter that is not used for a template specialization?
I have a template class template <typename T, int I, typename S> struct foo. This class can be nested like so: foo<foo<void, 1, void>, 1, void>. The only parameter that takes a foo struct is the first one typename T I cannot change the order of the parameters The issue I am having is that […]
In C++, Is there a way to make one parameter accept two different data types?
Let’s say I have 3 different Class. Notice: X and Y is different data structure.