From 28faeb24b4f86a3c2e93be767e0924a4ac3686c4 Mon Sep 17 00:00:00 2001 From: Brett Rogers Date: Thu, 11 Jun 2026 16:05:51 +1000 Subject: [PATCH] Simplify ES.49 example --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 11125dfd5..ab44b4b03 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -12174,7 +12174,7 @@ The named casts are: class B { /* ... */ }; class D { /* ... */ }; - template D* upcast(B* pb) + D* downcast(B* pb) { D* pd0 = pb; // error: no implicit conversion from B* to D* D* pd1 = (D*)pb; // legal, but what is done?