Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

implement safe version of operator? #104

Open
robertramey opened this issue Mar 29, 2021 · 1 comment
Open

implement safe version of operator? #104

robertramey opened this issue Mar 29, 2021 · 1 comment

Comments

@robertramey
Copy link
Member

return x1 < x2 ? x1 : x2 generates compile error because operator? required that both t1 and t2 need to be convertible to the same type. But only safe version of operator? would do this. Solution implement safe version of operator?

@robertramey
Copy link
Member Author

Hmmm have to think about that. x2 and x1 definitely have to be convertible to the same type. I guess you're right, I need to define/implement operator?(...)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant