Specifying the underlying enum type in g++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am using gcc 4.1.2 and 4.3.2, looking for a way to specify the
underlying type in a typedef enum declaration like so:

typedef enum : unsigned char { first_tag, second_tag, third_tag }
my_enum_type;

The preceding statement compiles with visualc++ but not with g++

Is there a way?

Thanks
J


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux