mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Corrected mistake in enforcement for R.3.
This commit is contained in:
parent
feb6a2c569
commit
907de2aa4c
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user