Merge pull request #914 from AndrewPardoe/issue911

Clarify I.11 with regards to recommending smart pointers/owner<T>.
This commit is contained in:
Andrew Pardoe 2017-05-08 11:09:19 -07:00 committed by GitHub
commit bec67d690a

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.