This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

enumeration with error when a value is used twice

Hello everyone,

is it possible to test an enum for each value just appearing once.
Example:

enum foo
{
   BAR = 0,
   BAZ = 0
};

Is it possible to create an error or warning with this?

Thanks for your answers
Alexander