Skip to content

Make comparisons between heterogenous and homogenous quantities possible #24

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

muggenhor
Copy link
Contributor

Make comparisons between heterogenous and homogenous quantities possible .

And add a test case that fails without this change.

NOTE that the explicit conversion to quantity<Unit1, Y> is probably not necessary. It definitely isn't necessary if conversion_factor(Unit2(), Unit1()) == 1, and I believe that it is. Unfortunately I haven't been able to verify that through reviewing the code involved in computing the conversion factor.

@muggenhor
Copy link
Contributor Author

muggenhor commented Jul 13, 2017

@swatanabe what's your opinion on this?

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

Successfully merging this pull request may close these issues.

2 participants