Last active
August 22, 2017 07:39
-
-
Save deque-blog/2bf189e894ca9957f8a5d2e1f8dc3660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<Currency SameCurrency> | |
bool operator==(Money<SameCurrency> lhs, Money<SameCurrency> rhs) | |
{ | |
return lhs.amount() == rhs.amount(); | |
} | |
template<Currency LeftCurrency, Currency RightCurrency> | |
bool operator==(Money<LeftCurrency> lhs, Money<RightCurrency> rhs) | |
{ | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment