I copy and pasted some code that increments an enum:
myenum++;
This code worked fine as it was compiled in VS.NET C++ 2003.
I am now developing in Visual Studio 6.0 and get the error:
error C2676: binary ‘++’ : ‘enum
ID’ does not define this
operator or a conversion to a type
acceptable to the predefined operator
How can I get this to behave the same in 6.0?
Please try to convert to int, add one (+1) and convert back to the enum.