diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/stubs/hash.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/google/protobuf/stubs/hash.h b/src/google/protobuf/stubs/hash.h index 33b7b91a..96f74a67 100644 --- a/src/google/protobuf/stubs/hash.h +++ b/src/google/protobuf/stubs/hash.h @@ -89,8 +89,9 @@ struct hash<const char*> { template <typename Key, typename Data, typename HashFcn = hash<Key>, - typename EqualKey = int > -class hash_map : public std::map<Key, Data, HashFcn> { + typename EqualKey = int, + typename Alloc = std::allocator< std::pair<const Key, Data> > > +class hash_map : public std::map<Key, Data, HashFcn, Alloc> { public: hash_map(int = 0) {} }; @@ -125,9 +126,10 @@ struct hash<const char*> template <typename Key, typename Data, typename HashFcn = hash<Key>, - typename EqualKey = int > + typename EqualKey = int, + typename Alloc = std::allocator< std::pair<const Key, Data> > > class hash_map : public GOOGLE_PROTOBUF_HASH_NAMESPACE::hash_map< - Key, Data, HashFcn> { + Key, Data, HashFcn, Alloc> { public: hash_map(int = 0) {} }; |