summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/telemetry.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/common/telemetry.h b/src/common/telemetry.h
index 7a09df0a7..2c945443b 100644
--- a/src/common/telemetry.h
+++ b/src/common/telemetry.h
@@ -58,21 +58,11 @@ public:
58 Field(FieldType type, std::string name, T&& value) 58 Field(FieldType type, std::string name, T&& value)
59 : name(std::move(name)), type(type), value(std::move(value)) {} 59 : name(std::move(name)), type(type), value(std::move(value)) {}
60 60
61 Field(const Field& other) : Field(other.type, other.name, other.value) {} 61 Field(const Field&) = default;
62 Field& operator=(const Field&) = default;
62 63
63 Field& operator=(const Field& other) { 64 Field(Field&&) = default;
64 type = other.type; 65 Field& operator=(Field&& other) = default;
65 name = other.name;
66 value = other.value;
67 return *this;
68 }
69
70 Field& operator=(Field&& other) {
71 type = other.type;
72 name = std::move(other.name);
73 value = std::move(other.value);
74 return *this;
75 }
76 66
77 void Accept(VisitorInterface& visitor) const override; 67 void Accept(VisitorInterface& visitor) const override;
78 68