mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-04 13:15:48 +08:00
Attributes: moving to ordered map
Otherwise the attributes are printed in pseudo-random order.
This commit is contained in:
parent
e8924a3d47
commit
7d421eb56c
@ -2,14 +2,15 @@
|
||||
|
||||
#include <spdlog/common.h>
|
||||
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
|
||||
|
||||
namespace spdlog {
|
||||
|
||||
class SPDLOG_API log_attributes {
|
||||
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 value_t = attr_map_t::mapped_type;
|
||||
using const_iter = attr_map_t::const_iterator;
|
||||
|
Loading…
Reference in New Issue
Block a user