From 7d421eb56c54b5d9e93dbff660b12e239e868e03 Mon Sep 17 00:00:00 2001 From: Felix Heitmann Date: Fri, 5 Jul 2024 14:55:46 +0200 Subject: [PATCH] Attributes: moving to ordered map Otherwise the attributes are printed in pseudo-random order. --- include/spdlog/attributes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/spdlog/attributes.h b/include/spdlog/attributes.h index 63ac12c7..f3ce23a8 100644 --- a/include/spdlog/attributes.h +++ b/include/spdlog/attributes.h @@ -2,14 +2,15 @@ #include +#include #include -#include + namespace spdlog { class SPDLOG_API log_attributes { public: - using attr_map_t = std::unordered_map; + using attr_map_t = std::map; using key_t = attr_map_t::key_type; using value_t = attr_map_t::mapped_type; using const_iter = attr_map_t::const_iterator;