mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 05:04:41 +03:00
C.20: another example touch-up to comply with C.46
This commit is contained in:
@@ -4878,7 +4878,7 @@ It's the simplest and gives the cleanest semantics.
|
|||||||
|
|
||||||
struct Named_map {
|
struct Named_map {
|
||||||
public:
|
public:
|
||||||
Named_map(const string& n) : name(n) {}
|
explicit Named_map(const string& n) : name(n) {}
|
||||||
// no copy/move constructors
|
// no copy/move constructors
|
||||||
// no copy/move assignment operators
|
// no copy/move assignment operators
|
||||||
// no destructor
|
// no destructor
|
||||||
|
|||||||
Reference in New Issue
Block a user