Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(922)

Unified Diff: base/containers/flat_map.h

Issue 2783823002: Fix compilation issue with base::flat_map. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/containers/flat_map.h
diff --git a/base/containers/flat_map.h b/base/containers/flat_map.h
index 8ae5a50e357fcc9615dab6171037b1aedef0a969..e2cb003338c5fb8171487b61a3676dc0cf7c7fa5 100644
--- a/base/containers/flat_map.h
+++ b/base/containers/flat_map.h
@@ -240,7 +240,7 @@ template <class Key, class Mapped, class Compare>
auto flat_map<Key, Mapped, Compare>::operator[](const Key& key) -> Mapped& {
typename tree::iterator found = tree::lower_bound(key);
if (found == tree::end() || tree::key_comp()(key, found->first))
- found = unsafe_emplace(found, key, Mapped());
+ found = tree::unsafe_emplace(found, key, Mapped());
return found->second;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698