Index: src/zone-containers.h |
diff --git a/src/zone-containers.h b/src/zone-containers.h |
index 8daf0dd657f232f070953f65fbe0930dd484e088..79b168c37eab7a16969d1b91384ba1f74e3d0423 100644 |
--- a/src/zone-containers.h |
+++ b/src/zone-containers.h |
@@ -114,12 +114,12 @@ class ZoneSet : public std::set<K, Compare, zone_allocator<K>> { |
// a zone allocator. |
template <typename K, typename V, typename Compare = std::less<K>> |
class ZoneMap |
- : public std::map<K, V, Compare, zone_allocator<std::pair<K, V>>> { |
+ : public std::map<K, V, Compare, zone_allocator<std::pair<const K, V>>> { |
public: |
// Constructs an empty map. |
explicit ZoneMap(Zone* zone) |
- : std::map<K, V, Compare, zone_allocator<std::pair<K, V>>>( |
- Compare(), zone_allocator<std::pair<K, V>>(zone)) {} |
+ : std::map<K, V, Compare, zone_allocator<std::pair<const K, V>>>( |
+ Compare(), zone_allocator<std::pair<const K, V>>(zone)) {} |
}; |