Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created September 8, 2017 09:26
Show Gist options
  • Save deque-blog/aa3462161dd17ebac6a0087326e1ec2a to your computer and use it in GitHub Desktop.
Save deque-blog/aa3462161dd17ebac6a0087326e1ec2a to your computer and use it in GitHub Desktop.
Implementation impl;
Interface1* i1 = &impl;
std::unique_ptr<Interface1> c1 = i1->clone();
Interface2* i2 = &impl;
std::unique_ptr<Interface2> c2 = i2->clone();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment