From 2c8b34653df679518bba4b964e4b75d3e2d8b725 Mon Sep 17 00:00:00 2001 From: Jacob Langley Date: Tue, 28 Feb 2017 09:27:50 -0800 Subject: [PATCH] Add a line to help remark identify code block inside bullet list --- CppCoreGuidelines.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 71ef50b..16eea29 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -14027,8 +14027,10 @@ This is a problem for people modernizing code. You can * update the library to be `const`-correct; preferred long-term solution -* "cast away `const`"; [best avoided](#Res-casts-const). -* provide a wrapper function; for example +* "cast away `const`"; [best avoided](#Res-casts-const) +* provide a wrapper function + +Example: void f(int* p); // old code: f() does not modify `*p` void f(const int* p) { f(const_cast(p); } // wrapper