Check the type you are deriving the enum class
from exists. In this case, there was no typedef specified for int8
.
Elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
-
30-08-2022 - |
Question
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?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow