Skip to content

Commit 4eb2706

Browse files
authored
Add C++ Core Guidelines link to C26431
1 parent c9741f7 commit 4eb2706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/code-quality/c26431.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 40be6032-c8de-49ab-8e43-e8eedc0ca0ba
1212
"The type of expression is already gsl::not_null. Do not test it for nullness."
1313

1414
**C++ Core Guidelines**:
15-
F.23: Use a not_null\<T> to indicate that "null" is not a valid value
15+
[F.23](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#f23-use-a-not_nullt-to-indicate-that-null-is-not-a-valid-value): Use a not_null\<T> to indicate that "null" is not a valid value
1616

1717
The marker type gsl::not_null from Guidelines Support Library is used to clearly indicate values that are never null pointers. It causes a hard failure if such assumption is not held at run time. So, obviously, there is no need to check for nullness if expression evaluates to a result of type gsl::not_null.
1818

0 commit comments

Comments
 (0)