Merge pull request #142 from oatpp/fix_lazy_string_map_invalidation

Invalidate LazyStringMap when new elements inserted.
This commit is contained in:
Leonid Stryzhevskyi 2019-10-14 02:18:31 +03:00 committed by GitHub
commit c9ce09635b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,7 @@ public:
*/
void put(const Key& key, const StringKeyLabel& value) {
m_map.insert({key, value});
m_fullyInitialized = false;
}
/**
@ -94,6 +95,7 @@ public:
if(it == m_map.end()) {
m_map.insert({key, value});
m_fullyInitialized = false;
return true;
}