Join GitHub today
proposal: ability to specify tag type of enums, and set the tag value #305
So here we set the tag type of
The tag type has to support equality and comparison operators, and there's no operator overloading. So it pretty much limits it to integers.
Delete the ability to explicit cast enum tags to any integer and replace it with the ability to only explicitly cast to the tag type. So if you want to cast an enum tag to an integer, you have to specify the tag type.
You can now specify the tag type in enums, as described in this issue. You can also access the tag type with