Skip to content

Commit 5b98c70

Browse files
committed
Fix R.21 warning to cover all Shared_pointer parameters
Closes #2226
1 parent 4e3a6f2 commit 5b98c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9879,7 +9879,7 @@ This is more efficient:
98799879

98809880
##### Enforcement
98819881

9882-
(Simple) Warn if a function uses a `Shared_pointer` with an object allocated within the function, but never returns the `Shared_pointer` or passes it to a function requiring a `Shared_pointer&`. Suggest using `unique_ptr` instead.
9882+
(Simple) Warn if a function uses a `Shared_pointer` with an object allocated within the function, but never returns the `Shared_pointer` or passes it to a function requiring a `Shared_pointer`. Suggest using `unique_ptr` instead.
98839883

98849884
### <a name="Rr-make_shared"></a>R.22: Use `make_shared()` to make `shared_ptr`s
98859885

0 commit comments

Comments
 (0)