mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Rename template parameter name Bool which conflicts with X11 headers
This commit is contained in:
Vendored
+3
-3
@@ -682,9 +682,9 @@ namespace phmap {
|
||||
// Helper functions to do a boolean comparison of two keys given a boolean
|
||||
// or three-way comparator.
|
||||
// SFINAE prevents implicit conversions to bool (such as from int).
|
||||
template <typename Bool,
|
||||
phmap::enable_if_t<std::is_same<bool, Bool>::value, int> = 0>
|
||||
constexpr bool compare_result_as_less_than(const Bool r) { return r; }
|
||||
template <typename BoolType,
|
||||
phmap::enable_if_t<std::is_same<bool, BoolType>::value, int> = 0>
|
||||
constexpr bool compare_result_as_less_than(const BoolType r) { return r; }
|
||||
constexpr bool compare_result_as_less_than(const phmap::weak_ordering r) {
|
||||
return r < 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user