Skip to content

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