static const array of values in Variadic Template C++
问题 I have a function that I want to be able to runtime check the argument types of as I'm casting a void pointer back to a function. Curious as to how I turn the list of arguments into into a hash using the TypeToEnum template that is constructed like #define DEFINE_TYPE(x)\ template<>\ struct TypeToEnum<x>\ {\ public:\ static const unsigned int value = HashString(#x);\ };\ That way I can determine the function signature using templates. I just have no idea how to convert that into a static