Is this correct to overwrite operator++ in enum_class?

后端 未结 0 1436
既然无缘
既然无缘 2020-12-04 13:08
enum class COLOR_
{
    RED,
    GREEN,
    BLUE,
    YELLOW,
    count
};
inline COLOR_& operator++(COLOR_& c) {
    c = static_cast(static_ca         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题