I read about enumeration declaration in C++ using cppreference.
Then I have made Enum class and check whether it is a class type or not using std::is_class.
#include <iostream>
enum class Enum
{
red = 1, blue, green
};
int main()
{
std::cout << std::boolalpha;
std::cout << std::is_class<Enum>::value << '\n';
}
Then I compiled and ran in G++ compiler on Linux platform, it prints false value.
So Is enum class type or not? If enum is a class type, then why I'm getting false value?
enum class.