This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Type-safe wrapper for enum flags


On 11/09/2015 01:24 PM, Patrick Palka wrote:

> FWIW the latest patch looks good to me.

Thanks.  I've pushed the patch in now, along with Simon's follow up.

> 
> BTW, I think GCC could make use of this enum_flags abstraction. When
> GCC moved to C++ it seems to have went the type-unsafe route regarding
> enum compatibility, converting  "enum foo { ... };" to "enum foo_flags
> { ... }; typedef int foo;" which is a pretty inferior solution. Do you
> plan on incorporating this abstraction into GCC too? If not, I can
> help to do it.

Nope, I don't have plans for that.  Feel free to run with it.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]