mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 21:24:41 +03:00
C.20: define a ctor to not imply we're forbidding all ctors
closes #2212
This commit is contained in:
@@ -4878,6 +4878,7 @@ It's the simplest and gives the cleanest semantics.
|
|||||||
|
|
||||||
struct Named_map {
|
struct Named_map {
|
||||||
public:
|
public:
|
||||||
|
Named_map() : name("empty") {}
|
||||||
// ... no default operations declared ...
|
// ... no default operations declared ...
|
||||||
private:
|
private:
|
||||||
string name;
|
string name;
|
||||||
|
|||||||
Reference in New Issue
Block a user