From 0f7854926477eb8d0971de6c1ea88dd21071e028 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 15 Apr 2026 12:27:28 +0100 Subject: 4 fields is more than enough for Entity to be a fully-fledged type --- src/logTypes.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/logTypes.hpp') diff --git a/src/logTypes.hpp b/src/logTypes.hpp index fb66867..7f0473e 100644 --- a/src/logTypes.hpp +++ b/src/logTypes.hpp @@ -37,7 +37,13 @@ namespace WebStat { using EntityId = int32_t; using EntityHash = std::array; - using Entity = std::tuple, EntityType, std::string_view>; + + struct Entity { + EntityHash hash; + std::optional id; + EntityType type; + std::string_view value; + }; } namespace scn { -- cgit v1.3