Rename template parameter name Bool which conflicts with X11 headers

This commit is contained in:
greg
2020-03-29 08:28:37 -04:00
parent 9f64feed0c
commit 882162cc2a
+3 -3
View File
@@ -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;
}