mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
C.130: drop a destructor in the D class (#1855)
To follow the Rule of Zero.
This commit is contained in:
@@ -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};
|
||||||
|
|||||||
Reference in New Issue
Block a user