From dc09408f1a68356ee21969cb4f4fb28e94bf6512 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 26 Mar 2025 10:22:42 +0000 Subject: Add a typedef for the serializable id. --- include/serialize.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 objects; + std::map objects; /** Destroys a serializable type. */ ~Type(); -- cgit