Scope resolution operator on enums a compiler-specific extension?

前端 未结 5 1699
你的背包
你的背包 2020-12-19 05:33

On this question, there\'s an answer that states:

You can use typedef to make Colour enumeration type accessible without specifying it\'s \"full name\

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 06:04

    In standard c++, things to the left of "::" must be a class or namespace, enums don't count.

提交回复
热议问题