From e2c0f23ce120f07979f6a64f365381f10014faa7 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Mon, 16 Nov 2020 17:07:56 +0100 Subject: [PATCH] F.60: Remove C-style cast (T&) from example of invalid C++ (#1711) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index fe61697..613cd08 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3472,7 +3472,7 @@ Sometimes having `nullptr` as an alternative to indicated "no object" is useful, ##### Note -It is possible, but not valid C++ to construct a reference that is essentially a `nullptr` (e.g., `T* p = nullptr; T& r = (T&)*p;`). +It is possible, but not valid C++ to construct a reference that is essentially a `nullptr` (e.g., `T* p = nullptr; T& r = *p;`). That error is very uncommon. ##### Note