From 895d709546289fdf492a48f1163b86caf18b1462 Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Thu, 9 Jul 2020 14:24:22 -0400 Subject: [PATCH] NR.5: note that example is incomplete (closes #1643) --- CppCoreGuidelines.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 623b097..ab9a49e 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -20353,6 +20353,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste Cleanup(); } + // ... + // bad: two-phase initialization bool Init() { @@ -20409,6 +20411,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste } // compiler generated dtor does the job. (also see C.21) + + // ... }; Picture picture1(100, 100);