mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-04 13:15:48 +08:00
Attributes: use proper function for overwriting attributes
This commit is contained in:
parent
838d6402bc
commit
7394af7391
@ -46,7 +46,7 @@ public:
|
|||||||
|
|
||||||
void put(attr_map_t const& attributes) {
|
void put(attr_map_t const& attributes) {
|
||||||
auto lck = lock();
|
auto lck = lock();
|
||||||
attrs.insert(attributes.begin(), attributes.end());
|
for (auto const& attribute : attributes) attrs.insert_or_assign(attribute.first, attribute.second);
|
||||||
}
|
}
|
||||||
void put(const key_t& key, const value_t& value) { put({{key, value}}); }
|
void put(const key_t& key, const value_t& value) { put({{key, value}}); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user