I'd like to achieve something like that:
#include <string>
#include <array>
enum class MyEnum{
A,
B,
C
};
template<MyEnum... Args>
class MyClass{
public:
MyClass()
{
}
private:
std::array<MyEnum, sizeof...(Args)> array;
};
Now I have an array, which can hold all passed to template values. But how can I populate this array with template parameters?