On 02/15/2013 06:40 PM, Jason Merrill wrote:
The patch is OK. To deal with the warning, I would suggest putting
the constrained type somewhere other than ENUM_UNDERLYING_TYPE that's
shared between enums with fixed and non-fixed underlying types; having
it in ENUM_UNDERLYING_TYPE isn't really c
The patch is OK. To deal with the warning, I would suggest putting the
constrained type somewhere other than ENUM_UNDERLYING_TYPE that's shared
between enums with fixed and non-fixed underlying types; having it in
ENUM_UNDERLYING_TYPE isn't really correct anyway.
Jason
Hi,
this PR is about the rejection (in C++11 mode of course) of:
enum class MyEnum { A = 1 };
struct MyClass
{
MyEnum Field1 : 3;
};
whereas the corresponding unscoped enum case already works. As noticed
by Jon, it seems that the below straightforward patchlet is enough to
solve the probl