My current code resembles this:
enum Enum1 : signed __int8
{
Value1 = 1 ,
Value2 = 2 ,
Value3 = -3 // C4341
} ;
The error details state:
"warning C4341: 'Value3' : signed value is out of range for enum constant"
MSDN states that this warning only occurs when you use values outside of the range of an int:
(> 2^31) OR (< 1 - 2^31)
Why is it telling me that my negative values are invalid? It is only a warning, but Google is telling me that this warning indicates that these enum values will be undefined - which will break my program.