This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Specifying the underlying enum type in g++
- From: Jean-Claude Gervais <jc dot gervais at videotron dot ca>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Sep 2009 11:11:20 -0400
- Subject: Specifying the underlying enum type in g++
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