mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix grammar (#1335)
This commit is contained in:
committed by
Sergey Zubkov
parent
e0830c7c3b
commit
ff8934c39b
@@ -21814,7 +21814,7 @@ The `string`s of `v` are destroyed upon exit from `bad()` and so is `v` itself.
|
|||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
Most compilers already warn about simple cases and has the information to do more. Consider any pointer returned from a function suspect. Use containers, resource handles, and views (e.g., `span` known not to be resource handles) to lower the number of cases to be examined. For starters, consider every class with a destructor as resource handle.
|
Most compilers already warn about simple cases and have the information to do more. Consider any pointer returned from a function suspect. Use containers, resource handles, and views (e.g., `span` known not to be resource handles) to lower the number of cases to be examined. For starters, consider every class with a destructor as resource handle.
|
||||||
|
|
||||||
### <a name="Cr-templates"></a>Discussion: Use templates to express containers (and other resource handles)
|
### <a name="Cr-templates"></a>Discussion: Use templates to express containers (and other resource handles)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user