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: CppCoreGuidelines.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -11707,7 +11707,7 @@ Casts are widely (mis) used. Modern C++ has rules and constructs that eliminate
11707
11707
11708
11708
##### Enforcement
11709
11709
11710
-
* Force the elimination of C-style casts, except on a function with a `[[nodiscard]]` return.
11710
+
* Force the elimination of C-style casts, except when casting a `[[nodiscard]]` function return value to void.
11711
11711
* Warn if there are many functional style casts (there is an obvious problem in quantifying 'many').
11712
11712
* The [type profile](#Pro-type-reinterpretcast) bans `reinterpret_cast`.
11713
11713
* Warn against [identity casts](#Pro-type-identitycast) between pointer types, where the source and target types are the same (#Pro-type-identitycast).
0 commit comments