Compiler Error C2126

'operand' : incorrect operand

The specified operator was used on an enumeration.

The increment and decrement operators (++ and --) are not defined for enumerated types.