I just started to learn c++ and i have the following problem in this simple code:
enum class color_type {green,red,black};
color_type color(color_type::red);
I get the error "color_type is not a class or namespace". My goal is to create a variable of type color_type that can only take values red, black and green. Could you please help me? Thank you