Preserve aliased keys when erasing entries (#2659)

Co-authored-by: astunm <astunm@users.noreply.github.com>
This commit is contained in:
userandastunm authored and GitHub committed 2026-11-11 14:32:09 -05:00
1 parent cdcd2ac6e6
commit cc7a30f12f
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -1344,7 +1344,7 @@ public:
size_type erase(const std::string &key) {
auto before = entries_.size();
entries_.erase(std::remove_if(entries_.begin(), entries_.end(),
[&](const value_type &entry) {
[key](const value_type &entry) {
return keys_equal(entry.first, key);
}),
entries_.end());