Skip to content

Instantly share code, notes, and snippets.

@kozie
Created October 15, 2015 06:22
Show Gist options
  • Save kozie/e1b3483bcb42f2336833 to your computer and use it in GitHub Desktop.
Save kozie/e1b3483bcb42f2336833 to your computer and use it in GitHub Desktop.
member_init.cpp
class Derp
{
public:
Derp() : number_(0) {}
private:
int number_;
}
class Derp
{
public:
Derp() {};
private:
int number_ = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment