Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 8, 2017 07:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deque-blog/2d306810fa6564417236cf8c6611384d to your computer and use it in GitHub Desktop.
Implementation impl;
Interface1* i1 = &impl;
std::unique_ptr<Interface1> c1 = clone(i1);
Interface2* i2 = &impl;
std::unique_ptr<Interface2> c2 = clone(i2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment