Clarify I.11 with regards to recommending smart pointers/owner<T>.

This commit is contained in:
Andrew Pardoe 2017-05-01 15:32:28 -07:00
parent f0239407ad
commit 343f40792a

View File

@ -1816,7 +1816,7 @@ so the default is "no ownership transfer."
##### Enforcement
* (Simple) Warn on `delete` of a raw pointer that is not an `owner`.
* (Simple) Warn on `delete` of a raw pointer that is not an `owner<T>`. Suggest use of standard-library resource handle or use of `owner<T>`.
* (Simple) Warn on failure to either `reset` or explicitly `delete` an `owner` pointer on every code path.
* (Simple) Warn if the return value of `new` or a function call with an `owner` return value is assigned to a raw pointer or non-`owner` reference.