-
Notifications
You must be signed in to change notification settings - Fork 443
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
variant comparators #61
Comments
I implemented 1. @matpen By the way, even if there is no comparison operator available for a given type, it might be, when the type is converted. The other things are template types like |
Thank you very much for working on this! I added #80 as you requested. |
I have two enhancement suggestions regarding the variant comparators:
variant::operator>() seems to be missing; while it is perfectly possible to compare the other way around, it would be convenient to have it at one's disposal (along with "<=" and ">=").
I have read in the docs that some types might need the manual registration of the comparators... it would be nice to have the opportunity to check if that happened, so that the program can notice that the result of the comparison is actually invalid: for example by introducing "rttr::type::has_less_than_comparator()" and analogous functions.
The text was updated successfully, but these errors were encountered: