diff --git a/runtime/Cpp/runtime/src/FlatHashMap.h b/runtime/Cpp/runtime/src/FlatHashMap.h index b9b9fd5f53..a935ad9c7f 100644 --- a/runtime/Cpp/runtime/src/FlatHashMap.h +++ b/runtime/Cpp/runtime/src/FlatHashMap.h @@ -48,9 +48,9 @@ namespace antlr4 { using FlatHashMap = absl::flat_hash_map; #else template ::hasher, - typename Equal = typename std::unordered_map::key_equal, - typename Allocator = typename std::unordered_map::allocator_type> + typename Hash = std::hash, + typename Equal = std::equal_to, + typename Allocator = std::allocator>> using FlatHashMap = std::unordered_map; #endif diff --git a/runtime/Cpp/runtime/src/FlatHashSet.h b/runtime/Cpp/runtime/src/FlatHashSet.h index 651612ab79..2ee6705e58 100644 --- a/runtime/Cpp/runtime/src/FlatHashSet.h +++ b/runtime/Cpp/runtime/src/FlatHashSet.h @@ -48,9 +48,9 @@ namespace antlr4 { using FlatHashSet = absl::flat_hash_set; #else template ::hasher, - typename Equal = typename std::unordered_set::key_equal, - typename Allocator = typename std::unordered_set::allocator_type> + typename Hash = std::hash, + typename Equal = std::equal_to, + typename Allocator = std::allocator> using FlatHashSet = std::unordered_set; #endif