Skip to content

Commit 424cd65

Browse files
authored
Add C++ Core Guidelines link to C26473
1 parent c9741f7 commit 424cd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/code-quality/c26473.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: d88aaa57-0003-421f-8377-4e6a5c27f2df
1212
"Don't cast between pointer types where the source type and the target type are the same."
1313

1414
**C++ Core Guidelines**:
15-
Type.1: Avoid casts
15+
[Type.1](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#prosafety-type-safety-profile): Avoid casts
1616

1717
This rule helps to remove unnecessary or suspicious casts. Obviously, when type is converted to itself, such conversion is ineffective, yet the fact that the cast is used may indicate subtle design issue or a potential for regression if types change in future. It is always safer to use as few casts as possible.
1818

0 commit comments

Comments
 (0)