[C++ PATCH] C++0x scoped enumerations
Doug Gregor
doug.gregor@gmail.com
Sat Aug 23 17:15:00 GMT 2008
On Sat, Aug 23, 2008 at 8:11 AM, Paolo Bonzini <bonzini@gnu.org> wrote:
>> +/* Determines whether this type is a C++0x scoped enumeration
>> + type. Scoped enumerations types are introduced via "enum class" or
>> + "enum struct", e.g.,
>> +
>> + enum Color {
>> + Red, Green, Blue
>> + }
>
> I guess there is some inconsistency here. :-)
Hah! Thanks.
Actually, I'll use this opportunity to clean up the value of
ENUM_UNDERLYING_TYPE for enumeration types without a fixed underlying
type. Updated patch attached.
- Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scoped-enum-4.patch
Type: text/x-patch
Size: 45852 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080823/ec69d60f/attachment.bin>
More information about the Gcc-patches
mailing list