mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Fix issue #34
This commit is contained in:
@@ -7678,7 +7678,7 @@ There can be code in the `...` part that causes the `delete` never to happen.
|
|||||||
delete p; // error: just delete the object p, rather than delete the array p[]
|
delete p; // error: just delete the object p, rather than delete the array p[]
|
||||||
}
|
}
|
||||||
|
|
||||||
**Note**: This example also violates the [no naked `new` rule](#Res-new) and has many more problems.
|
**Note**: This example not only violates the [no naked `new` rule](#Res-new) as in the previous example, it has many more problems.
|
||||||
|
|
||||||
**Enforcement**:
|
**Enforcement**:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user