Using enable_if with struct specialization
问题 I am attempting to define a template that will will specify a storage type given another type T. I'd like to use enable_if to catch all the arithmetic types. Below is my attempt at this which complains the template is redeclared with 2 parameters. I tried adding a 2nd dummy parm to the primary template but get a different error. How can this be done? #include <string> #include <type_traits> template <typename T> struct storage_type; // want compile error if no match // template <typename T,