M
Martin Magnusson
I'm using enums as case labels throughout my code, and that works fine
in gcc 3.3.4. However, when compiling it with the compiler that ships
with Dev-C++ 4.9.8.0, I get the error "case label does not reduce to an
integer constant".
The case label in question looks like this
case I<D>::E:
And I have a class
template <unsigned D>
class I
{
public:
enum M {A,B,C,D,E};
};
Shouldn't that work?
in gcc 3.3.4. However, when compiling it with the compiler that ships
with Dev-C++ 4.9.8.0, I get the error "case label does not reduce to an
integer constant".
The case label in question looks like this
case I<D>::E:
And I have a class
template <unsigned D>
class I
{
public:
enum M {A,B,C,D,E};
};
Shouldn't that work?