struct Interface1 | |
{ | |
virtual std::unique_ptr<Interface1> cloneInterface1() const = 0; | |
//... | |
}; | |
struct Interface2 | |
{ | |
virtual std::unique_ptr<Interface2> cloneInterface2() const = 0; | |
//... | |
}; | |
class Implementation : public Interface1, public Interface2 | |
{ | |
public: | |
virtual std::unique_ptr<Interface1> cloneInterface1() const override { /* ... */ } | |
virtual std::unique_ptr<Interface2> cloneInterface2() const override { /* ... */ } | |
//... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment