From a1c248b26f663f1807b5bd4678a596a6f424fed6 Mon Sep 17 00:00:00 2001 From: Thibault Kruse Date: Thu, 11 Aug 2016 10:51:58 +0200 Subject: [PATCH] unique variable names in example --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4c59e51..13d2159 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -16200,7 +16200,7 @@ Note that a C-style `(T)expression` cast means to perform the first of the follo }; Derived1 d1; - Base* p = &d1; // ok, implicit conversion to pointer to Base is fine + Base* p1 = &d1; // ok, implicit conversion to pointer to Base is fine // BAD, tries to treat d1 as a Derived2, which it is not Derived2* p2 = (Derived2*)(p);