Elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword

Viewed 10572

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?

1 Answers
Related