I would like to be able to create a std::tuple based on the enum value passed as a template argument, if possible without using global variables.
#include <tuple>
enum class Type
{
eInt,
eFloat,
eDouble
};
template <Type... type>
class Test
{
public:
private:
std::tuple < ? > m_data;
};
int main()
{
Test<Type::eDouble, Type::eInt> t1; // m_data = std::tuple<double, int>
Test<Type::eInt, Type::eFloat> t2; // m_data = std::tuple<int, float>
}