Skip to content

Commit

Permalink
Revert "unordered map"
Browse files Browse the repository at this point in the history
This reverts commit eff57f8.
  • Loading branch information
massimiliano96 committed Mar 17, 2024
1 parent eff57f8 commit c1f3b3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/spdlog/pattern_formatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include <string>
#include <unordered_map>
#include <map>
#include <vector>

namespace spdlog {
Expand Down Expand Up @@ -81,8 +82,8 @@ class SPDLOG_API MDC {

static void clear() { get_context().clear(); }

static std::unordered_map<std::string, std::string> &get_context() {
static thread_local std::unordered_map<std::string, std::string> context;
static std::map<std::string, std::string> &get_context() {
static thread_local std::map<std::string, std::string> context;
return context;
}
};
Expand Down

0 comments on commit c1f3b3b

Please sign in to comment.