From 9d283bc451fa6b02cbe6473609e4434fc2e204b0 Mon Sep 17 00:00:00 2001 From: Bjarne Stroustrup Date: Sun, 21 May 2017 21:54:27 -0400 Subject: [PATCH] anchors for Type.* --- CppCoreGuidelines.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5b1733f..3950edb 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -18983,11 +18983,13 @@ An implementation of this profile shall recognize the following patterns in sour Type safety profile summary: -* [Type.1: Don't use `reinterpret_cast`](#Pro-type-reinterpretcast): -a stricter version of [Avoid casts](#Res-casts), [prefer named casts](#Res-casts-named). -* [Type.2: Don't use `static_cast` downcasts. ](#Pro-type-downcast): +Type.1: Don't use `reinterpret_cast`: +A strict version of [Avoid casts](#Res-casts) and [prefer named casts](#Res-casts-named). + +Type.2: Don't use `static_cast` downcasts: [Use `dynamic_cast` instead](#Rh-dynamic_cast). -* [Type.3: Don't use `const_cast` to cast away `const` (i.e., at all)](#Pro-type-constcast): + +Type.3: Don't use `const_cast` to cast away `const` (i.e., at all): [Don't cast away const](#Res-casts-const). * [Type.4: Don't use C-style `(T)expression` casts](#Pro-type-cstylecast): [Prefer static casts](#Res-cast-named).