mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Repplaced map with unordered_map for level->colos mapping
This commit is contained in:
parent
f258af4364
commit
51a83da578
@ -10,7 +10,7 @@
|
|||||||
#include "../details/os.h"
|
#include "../details/os.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace spdlog
|
namespace spdlog
|
||||||
{
|
{
|
||||||
@ -102,7 +102,7 @@ protected:
|
|||||||
}
|
}
|
||||||
FILE* target_file_;
|
FILE* target_file_;
|
||||||
bool should_do_colors_;
|
bool should_do_colors_;
|
||||||
std::map<level::level_enum, std::string> colors_;
|
std::unordered_map<level::level_enum, std::string> colors_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user