From 48c3395fe1964fd648f90db7447fd7f30a2dab65 Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Fri, 4 Oct 2024 09:52:31 -0400 Subject: [PATCH] C.20: another example touch-up to comply with C.46 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 702ec6c6d..7a3cdd39a 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4878,7 +4878,7 @@ It's the simplest and gives the cleanest semantics. struct Named_map { public: - Named_map(const string& n) : name(n) {} + explicit Named_map(const string& n) : name(n) {} // no copy/move constructors // no copy/move assignment operators // no destructor