Comparing enums without their associated values

Another interesting idea is to utilize macros for this. It's already mentioned here:

I don't have the knowledge to implement a macro that would achieve this, but I'm very interested in using one.