Help with implementing == and != operators in enum class #3552
Unanswered
eddiehoyle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm having trouble implementing equal/not equal operators on an
enum class
.See the following example:
And testing with this code:
I see:
I just can't seem to trigger the exceptions in
operator ==
andoperator !=
. Can anyone help me with where I'm going wrong?Versions:
Beta Was this translation helpful? Give feedback.
All reactions