Why do I get an error when directly comparing two enums?

后端 未结 4 1846
闹比i
闹比i 2021-02-13 20:09

I have some code I\'m porting to a new platform, and it started giving me an error about comparing two enumerators from two different enumerator-lists. I\'m confused why it\'s g

4条回答
  •  春和景丽
    2021-02-13 20:47

    Its a warning but as you have compiled with -Wall -Werror all warnings are treated as error Rest you can find something in similar question.

    Is there a correct way to avoid warnings when comparing two different enums?

    with regards

    hims

提交回复
热议问题