I have the following enum specification:
enum class FaceDirection : int8 { Down, Up };
g++ 4.8.1 gives the following error:
warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
What causes this?
Check the type you are deriving the enum class from exists. In this case, there was no typedef specified for int8.
enum class
int8
1.4m articles
1.4m replys
5 comments
57.0k users