If we have an enumeration type:
enum E {
E1,
E2,
// ...
};
and based on E, a class template:
template <E T>
class C { /* ... */ };
Is there a way of using a declared variable of the type E as a template argument?
Example code:
E example_type = E1;
C<example_type> example_class;
constexpr, yes.Cmakes no senseC<E1>?