Hi, I have this:
typedef enum{
Adjust_mode_None = 0,
Adjust_mode_H_min,
Adjust_mode_H_max,
Adjust_mode_S_min,
Adjust_mode_S_max,
Adjust_mode_V_min,
Adjust_mode_V_max
}Adjust_mode;
and at some point I want to do:
adjust_mode_ = (adjust_mode_+1)%7;
but I get Invalid conversion from int to Adjust_mode
This is ok in other languages, what is wrong in C++? do I need to define some operator?