Index: base/memory/mru_cache.h |
diff --git a/base/memory/mru_cache.h b/base/memory/mru_cache.h |
index 132b324bc7e3bc2d1f37d87e4fb098ac6432d4e0..32a6fbbbdbe990223dff6cd85780b2f78949fe4d 100644 |
--- a/base/memory/mru_cache.h |
+++ b/base/memory/mru_cache.h |
@@ -91,7 +91,7 @@ class MRUCacheBase { |
} |
ordering_.push_front(value_type(key, payload)); |
- index_[key] = ordering_.begin(); |
+ index_.insert(std::make_pair(key, ordering_.begin())); |
tzik
2011/06/16 08:55:19
Previous 10 lines guarantee the absence of occupan
|
return ordering_.begin(); |
} |