Skip to content

Instantly share code, notes, and snippets.

@yifu
Created September 18, 2012 15:10
Show Gist options
  • Select an option

  • Save yifu/3743667 to your computer and use it in GitHub Desktop.

Select an option

Save yifu/3743667 to your computer and use it in GitHub Desktop.
#include <iostream>
bool f (const bool& b = bool(true))
{
return b;
}
using namespace std;
int main()
{
cout << "hello world" << endl;
bool a = true;
f(a);
f();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment