You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/c26461.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,40 @@ ms.date: 03/22/2018
4
4
ms.topic: reference
5
5
f1_keywords: ["C26461"]
6
6
helpviewer_keywords: ["C26461"]
7
+
description: CppCoreCheck rule that enforces C++ Core Guidelines con.3
7
8
---
8
9
# C26461 USE_CONST_POINTER_ARGUMENTS:
9
10
10
-
The pointer argument '%argument%' for function '%function%' can be marked as a pointer to `const`. See [C++ Core Guidelines con.3](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rconst-ref).
11
+
The pointer argument '%argument%' for function '%function%' can be marked as a pointer to `const` (con.3).
12
+
13
+
A function with a `T*` argument has the potential to modify the value of the object. If that is not the intent of the function, it is better to make the pointer a `const T*` instead.
0 commit comments