I\'m trying to implement std::is_enum. Here is my code so far:
template
struct is_enum {
static bool value;
};
template
This
template
promises that the template argument is a value of type enum E. The argument is NOT a type (Type template arguments are introduced by typename, or for backward compatibility, class. Even struct isn't allowed). It's just like saying
template
except no name is given for the variable.
Things go wrong from there.