From dd5796480127665eba09a3b4ce1f6154008323c1 Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Thu, 3 Oct 2024 16:36:32 -0400 Subject: [PATCH] C.20: define a ctor to not imply we're forbidding all ctors closes #2212 --- CppCoreGuidelines.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 8589d78..eda492e 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4878,6 +4878,7 @@ It's the simplest and gives the cleanest semantics. struct Named_map { public: + Named_map() : name("empty") {} // ... no default operations declared ... private: string name;