Skip to content

Commit 48c3395

Browse files
committed
C.20: another example touch-up to comply with C.46
1 parent 417da74 commit 48c3395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4878,7 +4878,7 @@ It's the simplest and gives the cleanest semantics.
48784878

48794879
struct Named_map {
48804880
public:
4881-
Named_map(const string& n) : name(n) {}
4881+
explicit Named_map(const string& n) : name(n) {}
48824882
// no copy/move constructors
48834883
// no copy/move assignment operators
48844884
// no destructor

0 commit comments

Comments
 (0)