From 740e71ecf884de1c136936a34ba69ce971af71e6 Mon Sep 17 00:00:00 2001 From: stefanhige <53568357+stefanhige@users.noreply.github.com> Date: Mon, 18 Oct 2021 05:12:02 +0200 Subject: [PATCH] C.147: Add missing example. (#1835) --- CppCoreGuidelines.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 33d649a..1c79463 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8063,7 +8063,10 @@ Casting to a reference expresses that you intend to end up with a valid object, ##### Example - ??? + std::string f(Base& b) + { + return dynamic_cast(b).to_string(); + } ##### Enforcement