Created
August 19, 2017 10:02
-
-
Save deque-blog/34a790ea216b07419736ea86ecde7bca 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
// Returns false: different currencies | |
Money<Currency::EUR>{3} == Money<Currency::USD>{3}; | |
// Returns true: same currency and same amount | |
Money<Currency::EUR>{3} == Money<Currency::EUR>{3}; | |
// Returns false: same currency but different amount | |
Money<Currency::EUR>{3} == Money<Currency::EUR>{5}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment