Skip to content

Commit dd57964

Browse files
committed
C.20: define a ctor to not imply we're forbidding all ctors
closes #2212
1 parent 50afe02 commit dd57964

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CppCoreGuidelines.md

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

48794879
struct Named_map {
48804880
public:
4881+
Named_map() : name("empty") {}
48814882
// ... no default operations declared ...
48824883
private:
48834884
string name;

0 commit comments

Comments
 (0)