It would be very convenient to have "short enum" or "char enum" in VC++, as I have seen mentioned elsewhere for GCC etc. Is there some option in VC++ to allow this?
+1
A:
You can use something like
enum name : char
{
values
}
but this is a VC-specific extension. Not sure if there's standardised support for this in VC.
Nik
2009-09-18 09:35:31