mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Restore init thread-local var in mdc.h, not use reference-init
This commit is contained in:
parent
d89fff6c7c
commit
8841b7e2d5
@ -38,7 +38,7 @@ public:
|
||||
static void clear() { get_context().clear(); }
|
||||
|
||||
static mdc_map_t &get_context() {
|
||||
static thread_local mdc_map_t& context = *new mdc_map_t;
|
||||
static thread_local mdc_map_t context;
|
||||
return context;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user