On Tuesday, 2 April 2019 at 09:02:03 UTC, Dennis wrote:
You can make the enum type not an integer type.

```
struct Int{int i;}

enum E: Int {
    first = Int(0),
    second = Int(1),
}
```

Thanks.

Are there any plans on deprecating implicit conversions of enums to integers?

Reply via email to