Skip to content

Instantly share code, notes, and snippets.

@madbence
Created April 15, 2014 14:50
Show Gist options
  • Save madbence/10738681 to your computer and use it in GitHub Desktop.
Save madbence/10738681 to your computer and use it in GitHub Desktop.
struct foo {
static int bar;
int baz;
foo():baz(bar){}
foo(int woof):baz(woof){}
};
int foo::bar = 3;
int main() {
foo qux;
return qux.baz;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment