Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created August 19, 2017 12:14
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/7eb00a2c27382451a57d3b2940aee3d7 to your computer and use it in GitHub Desktop.
Save deque-blog/7eb00a2c27382451a57d3b2940aee3d7 to your computer and use it in GitHub Desktop.
std::vector<Money<Currency::USD>> usds;
// Compiles fine
usds.push_back(Money<Currency::USD>{5});
// Does not compile
usds.push_back(Money<Currency::EUR>{3});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment