Skip to content

Instantly share code, notes, and snippets.

@ofan
Last active December 19, 2015 17:38
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 ofan/5992420 to your computer and use it in GitHub Desktop.
Save ofan/5992420 to your computer and use it in GitHub Desktop.
class Foo;
Foo* newFooSingleton();
Foo* global_foo_ptr_;
const Foo* global_const_foo_ptr_ = newFooSingleton();
const Foo& global_const_foo_ref_ = *global_const_foo_ptr_;
class Bar;
// Class definition here
class Foo {
public:
Foo();
~Foo();
Foo& aPubMethod();
private:
Bar m_bar; // Bar is declared but not defined
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment