Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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