Attributes: moving to ordered map

Otherwise the attributes are printed in pseudo-random order.
pull/3128/head
Felix Heitmann 1 year ago committed by M4rFri
parent b63b652d6c
commit fbba947af4
No known key found for this signature in database

@ -2,14 +2,15 @@
#include <spdlog/common.h> #include <spdlog/common.h>
#include <map>
#include <mutex> #include <mutex>
#include <unordered_map>
namespace spdlog { namespace spdlog {
class SPDLOG_API log_attributes { class SPDLOG_API log_attributes {
public: public:
using attr_map_t = std::unordered_map<std::string, std::string>; using attr_map_t = std::map<std::string, std::string>;
using key_t = attr_map_t::key_type; using key_t = attr_map_t::key_type;
using value_t = attr_map_t::mapped_type; using value_t = attr_map_t::mapped_type;
using const_iter = attr_map_t::const_iterator; using const_iter = attr_map_t::const_iterator;

Loading…
Cancel
Save