Use a real struct
There's no usage of these structures as a tuple, and get<0> isn't very
descriptive. Replace them with a struct.
Change-Id: I7705a14fe1486c9398fd4bbc426f3c8208060c8e
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/snmp_notification.hpp b/snmp_notification.hpp
index b48bc78..7477895 100644
--- a/snmp_notification.hpp
+++ b/snmp_notification.hpp
@@ -35,7 +35,6 @@
#include <sstream>
#include <string>
-#include <tuple>
#include <vector>
namespace phosphor
@@ -54,7 +53,13 @@
oid SNMPTrapOID[] = {1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0};
oid sysuptimeOID[] = {1, 3, 6, 1, 2, 1, 1, 3, 0};
-using Object = std::tuple<OID, OID_LEN, Type, Value>;
+struct Object
+{
+ OID oid;
+ OID_LEN oid_len;
+ Type type;
+ Value value;
+};
/** @brief Get the ASN object type from the given templatized type.
* Specialize this template for handling a specific type.