Am I missing something here I'm using VS 2005, and this:
enum MyEnum : short
{
ENUM_ELEMENT = SHRT_MIN
};
Results in this:
warning C4341: 'ENUM_ELEMENT' : signed value is out of range for enum constant
BTW, I tried SHRT_MIN+1 and got the same thing.
Am I missing something here I'm using VS 2005, and this:
enum MyEnum : short
{
ENUM_ELEMENT = SHRT_MIN
};
Results in this:
warning C4341: 'ENUM_ELEMENT' : signed value is out of range for enum constant
BTW, I tried SHRT_MIN+1 and got the same thing.
enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN } = Warning C4341 ???
Irakli Lomidze
Mikkel Nordvang Roved
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=251513&SiteID=1
I also answered your question there. Thanks!
ckphelan
- PJ