mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Merge pull request #142 from oatpp/fix_lazy_string_map_invalidation
Invalidate LazyStringMap when new elements inserted.
This commit is contained in:
commit
c9ce09635b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user