summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorGravatar Marcin Kowalczyk <qrczak@google.com>2023-12-05 08:47:14 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-12-05 08:48:09 -0800
commitf845e60acd880dbf07788a5a2c0dbad0f9c57231 (patch)
tree004d2977ebac75185dc68e0e675a5fc6ef118ea0 /ci
parent7b6c17e378224844d8663a410da2da5353b205b9 (diff)
Make `absl::{partial,weak,strong}_ordering` aliases for the `std::` ordering
types when they are available. This makes them interchangeable in contexts known to be compiled as C++20. This also makes `absl::` ordering types compatible with `<=>`, allowing to unconditionally use `absl::` spelling for types but conditionally use `<=>` when available. PiperOrigin-RevId: 588085408 Change-Id: I1aa5247f0e31acbb838ee76829b7a13c74b0a94f
Diffstat (limited to 'ci')
-rw-r--r--ci/absl_alternate_options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ci/absl_alternate_options.h b/ci/absl_alternate_options.h
index 82d2ecf8..a5638591 100644
--- a/ci/absl_alternate_options.h
+++ b/ci/absl_alternate_options.h
@@ -22,6 +22,7 @@
#define ABSL_OPTION_USE_STD_OPTIONAL 0
#define ABSL_OPTION_USE_STD_STRING_VIEW 0
#define ABSL_OPTION_USE_STD_VARIANT 0
+#define ABSL_OPTION_USE_STD_ORDERING 0
#define ABSL_OPTION_USE_INLINE_NAMESPACE 1
#define ABSL_OPTION_INLINE_NAMESPACE_NAME ns
#define ABSL_OPTION_HARDENED 1