Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active August 22, 2017 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/2bf189e894ca9957f8a5d2e1f8dc3660 to your computer and use it in GitHub Desktop.
Save deque-blog/2bf189e894ca9957f8a5d2e1f8dc3660 to your computer and use it in GitHub Desktop.
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