Skip to content

Instantly share code, notes, and snippets.

@shrddr
Last active November 23, 2020 09:27
Show Gist options
  • Save shrddr/b65ad16a9fae0e1afce0 to your computer and use it in GitHub Desktop.
Save shrddr/b65ad16a9fae0e1afce0 to your computer and use it in GitHub Desktop.
who owns who
IModel* m = new MyModel();
shared_ptr <IView> v(MyView());
m->addView;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment