I know that in C++11 it's possible to forward declare an enum type (if storage type is provided) e.g.
enum E : short;
void foo(E e);
....
enum E : short
{
VALUE_1,
VALUE_2,
....
}
But I would like to forward declare an enum defined within a class e.g.
enum Foo::E : short;
void foo(E e);
....
class Foo
{
enum E : short
{
VALUE_1,
VALUE_2,
....
}
}
Is something like this possible in C++11 ?