Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active August 22, 2017 07:38
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/c3322521ef630393ecde87d9da723812 to your computer and use it in GitHub Desktop.
Save deque-blog/c3322521ef630393ecde87d9da723812 to your computer and use it in GitHub Desktop.
template<Currency SameCurrency>
Money<SameCurrency> operator+ (Money<SameCurrency> const& lhs, Money<SameCurrency> const& rhs)
{
return Money<SameCurrency>{lhs.amount() + rhs.amount()};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment