Skip to content

Commit 8d77ac5

Browse files
jorgbrowncopybara-github
authored andcommitted
Change Bool to BoolT in order to avoid a macro conflict from X11/Xlib.h
PiperOrigin-RevId: 497232675 Change-Id: Ic3cabbb85d90eb4f32a4bee17207e73475258e4b
1 parent 3d646b0 commit 8d77ac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

absl/types/compare.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,9 @@ namespace compare_internal {
544544
// Helper functions to do a boolean comparison of two keys given a boolean
545545
// or three-way comparator.
546546
// SFINAE prevents implicit conversions to bool (such as from int).
547-
template <typename Bool,
548-
absl::enable_if_t<std::is_same<bool, Bool>::value, int> = 0>
549-
constexpr bool compare_result_as_less_than(const Bool r) { return r; }
547+
template <typename BoolT,
548+
absl::enable_if_t<std::is_same<bool, BoolT>::value, int> = 0>
549+
constexpr bool compare_result_as_less_than(const BoolT r) { return r; }
550550
constexpr bool compare_result_as_less_than(const absl::weak_ordering r) {
551551
return r < 0;
552552
}

0 commit comments

Comments
 (0)