class SomeClass
{
public:
enum class InnerEnum : int
{
A,
B,
C
};
}
enum class SomeClass::InnerEnum : int;
class OtherClass
{
private:
SomeClass::InnerEnum mVariable;
};
error: opaque-enum-specifier must use a simple identifier enum class SomeClass::InnerEnum : int;
enum class SomeClass::InnerEnum : int; //not valid
class Outer::Inner; //not valid
class some_namespace::Class; //not valid