This commit is contained in:
Andrew Pardoe
2015-09-20 19:41:22 -07:00
parent 0bf90d2c47
commit 84a30986af

View File

@@ -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**: