summaryrefslogtreecommitdiff
path: root/include/serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serialize.h')
-rw-r--r--include/serialize.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/serialize.h b/include/serialize.h
index 440c8030c..e6ca7877a 100644
--- a/include/serialize.h
+++ b/include/serialize.h
@@ -110,10 +110,11 @@ protected:
Serializable &operator=(const Serializable &);
public:
+ using Id = uint64_t;
virtual ~Serializable();
/* Unique ID (per type, not globally) for this object */
- uint64_t id = 0;
+ Id id = 0;
/* Only used by redis, to ignore updates */
unsigned short redis_ignore = 0;
@@ -175,7 +176,7 @@ protected:
public:
/* Map of Serializable objects of this type keyed by their object id. */
- std::map<uint64_t, Serializable *> objects;
+ std::map<Serializable::Id, Serializable *> objects;
/** Destroys a serializable type. */
~Type();