C.130: drop a destructor in the D class (#1855)

To follow the Rule of Zero.
This commit is contained in:
oleksandrkozlov
2021-11-18 22:08:34 +01:00
committed by GitHub
parent 620cf6278e
commit b6d7ab64ad

View File

@@ -7493,7 +7493,6 @@ Copying a polymorphic class is discouraged due to the slicing problem, see [C.67
class D : public B { class D : public B {
public: public:
~D() override {};
gsl::owner<D*> clone() const override gsl::owner<D*> clone() const override
{ {
return new D{*this}; return new D{*this};