Skip to content

Commit

Permalink
C.20: another example touch-up to comply with C.46
Browse files Browse the repository at this point in the history
  • Loading branch information
cubbimew committed Oct 4, 2024
1 parent 417da74 commit 48c3395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48c3395

Please sign in to comment.