Explorar el Código

Merge pull request #85 from lioncash/warn

telemetry: Silence initialization order warnings
bunnei hace 8 años
padre
commit
36dc44fb22
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/common/telemetry.h

+ 2 - 2
src/common/telemetry.h

@@ -53,10 +53,10 @@ template <typename T>
 class Field : public FieldInterface {
 class Field : public FieldInterface {
 public:
 public:
     Field(FieldType type, std::string name, const T& value)
     Field(FieldType type, std::string name, const T& value)
-        : type(type), name(std::move(name)), value(value) {}
+        : name(std::move(name)), type(type), value(value) {}
 
 
     Field(FieldType type, std::string name, T&& value)
     Field(FieldType type, std::string name, T&& value)
-        : type(type), name(std::move(name)), value(std::move(value)) {}
+        : name(std::move(name)), type(type), value(std::move(value)) {}
 
 
     Field(const Field& other) : Field(other.type, other.name, other.value) {}
     Field(const Field& other) : Field(other.type, other.name, other.value) {}