Curiously recurring template pattern: Difference between revisions

Content deleted Content added
Line 219:
class Shape : public AbstractShape {
public:
std::unique_ptr<AbstractShape> clone() const override {
return new Derived(static_cast<Derived const&>(*this));
}