Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在声明一个枚举时收到此警告
enum Mask { NONE = 0, L = 1, H =2, U =4, V =8, D = 0X10, E = 0X20, P = 0X40, Q = 0X80, }; typedef std::vector<Mask> MaskVec;
我认为这个警告来自枚举声明。你能帮我指出问题吗?
谢谢
您的代码包含一个额外的逗号。
enum Mask { NONE = 0, L = 1, H =2, U =4, V =8, D = 0X10, E = 0X20, P = 0X40, Q = 0X80 //You placed an extra comma here };
尝试删除最后一个成员后的逗号enum。
enum