Skip to content

Instantly share code, notes, and snippets.

@olafurw
Created June 21, 2016 23:33
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 olafurw/5099c3ae62bb788e91729cdd3905a942 to your computer and use it in GitHub Desktop.
Save olafurw/5099c3ae62bb788e91729cdd3905a942 to your computer and use it in GitHub Desktop.
double Foo(
const double aBar,
const double aBaz)
{
return aBar + aBaz;
}
int main()
{
const auto result = Foo(1.2, 2.3);
return static_cast<int>(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment