-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value comparison #13
Comments
Hi, try this for your comparison:
(just the You're on to something with the documentation – I've been meaning to reorganize it. Some months after writing it, the problems with it are much more obvious to me. Things such as this issue should be much more clear. If you want to know what's going on with the The I would love to eliminate both the conversions to integral type and the |
@aantron if "Strict conversions" is turned on, then add these functions back. |
@exhau This is quite out of my brain's cache right now (swamped by other work). However, IIRC, removing these operators and letting the compiler choose implicit conversions results in ambiguous choices, which is an error. As you may be able to tell from other issues, this is a part of Better Enums that I'd like to improve. |
This could be a case of missing something in the documentation but I couldn't find any mention that comparisons don't work as you'd typically expect.
That is, the following will fail with an overload resolution error:
I'll admit to not going through all of the documentation (tried a search and a few examples) since I wanted a quick evaluation of the library and I'm not interested in the more advanced capabilities but this seems like something that, if it can't be fixed, should be made fairly clear.
Thanks!
The text was updated successfully, but these errors were encountered: