Skip to content

Instantly share code, notes, and snippets.

@hgiddens
Created November 19, 2012 05:30
Show Gist options
  • Select an option

  • Save hgiddens/4109098 to your computer and use it in GitHub Desktop.

Select an option

Save hgiddens/4109098 to your computer and use it in GitHub Desktop.
Easy to forget this syntax
class foo { foo(); int x; };
foo::foo() try : x(1) {
} catch (int e) {
--x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment