Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created September 8, 2017 09:26
Embed
What would you like to do?
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