Dre*_*kes 31 c++ g++ c++11 enum-class g++4.8
我有以下枚举规范:
enum class FaceDirection : int8
{
Down,
Up
};
Run Code Online (Sandbox Code Playgroud)
g ++ 4.8.1给出以下错误:
警告:scoped枚举的elaborated-type-specifier不能使用'class'关键字
是什么导致这个?
Dre*_*kes 35
检查enum class
从派生中派生的类型.在这种情况下,没有指定typedef int8
.
归档时间: |
|
查看次数: |
5462 次 |
最近记录: |