Closed BenjaminLawson closed 1 year ago
After thinking about this a bit, I think there are two real options:
enum
types to integer.enum
s.I'm leaning towards option 2, which means moving the type checks for the <
, >
, <=
, >=
operators over to the same function that type checks ==
and !=
. I think that's the only change needed: the way the various comparison operators are implemented in C++ and for inline evaluation should already work with enums.
It would be nice to be able to use enum values in requires expressions: