Corrected mistake in enforcement for R.3.

This commit is contained in:
Neil MacIntosh 2017-03-21 14:19:31 -07:00 committed by GitHub
parent feb6a2c569
commit 907de2aa4c

View File

@ -8263,7 +8263,7 @@ If pointer semantics are required (e.g., because the return type needs to refer
* (Simple) Warn on `delete` of a raw pointer that is not an `owner<T>`.
* (Moderate) Warn on failure to either `reset` or explicitly `delete` an `owner<T>` pointer on every code path.
* (Simple) Warn if the return value of `new` or a function call with return value of pointer type is assigned to a raw pointer.
* (Simple) Warn if the return value of `new` is assigned to a raw pointer.
* (Simple) Warn if a function returns an object that was allocated within the function but has a move constructor.
Suggest considering returning it by value instead.