We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9436b2e commit 1ecf32fCopy full SHA for 1ecf32f
include/spdlog/attributes.h
@@ -46,7 +46,7 @@ class SPDLOG_API log_attributes {
46
47
void put(attr_map_t const& attributes) {
48
auto lck = lock();
49
- attrs.insert(attributes.begin(), attributes.end());
+ for (auto const& attribute : attributes) attrs.insert_or_assign(attribute.first, attribute.second);
50
}
51
void put(const key_t& key, const value_t& value) { put({{key, value}}); }
52
0 commit comments