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 class FaceDirection : int8 { Down, Up };
g++ 4.8.1 给出以下错误:
警告:作用域枚举的详细类型说明符不得使用“类”关键字
这是什么原因造成的?
检查您派生的类型是否enum class存在。在这种情况下,没有为int8.
enum class
int8