Skip to content

Commit

Permalink
FlatHashMap: Revise the default template parameters to fix the compil…
Browse files Browse the repository at this point in the history
…er errors reported by GCC 7.

Signed-off-by: FireWolf <[email protected]>
  • Loading branch information
0xFireWolf committed Sep 12, 2022
1 parent aaab950 commit 9d7741d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/Cpp/runtime/src/FlatHashMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ namespace antlr4 {
using FlatHashMap = absl::flat_hash_map<Key, Value, Hash, Equal, Allocator>;
#else
template <typename Key, typename Value,
typename Hash = typename std::unordered_map<Key, Value>::hasher,
typename Equal = typename std::unordered_map<Key, Value>::key_equal,
typename Allocator = typename std::unordered_map<Key, Value>::allocator_type>
typename Hash = std::hash<Key>,
typename Equal = std::equal_to<Key>,
typename Allocator = std::allocator<std::pair<const Key, Value>>>
using FlatHashMap = std::unordered_map<Key, Value, Hash, Equal, Allocator>;
#endif

Expand Down

0 comments on commit 9d7741d

Please sign in to comment.