PR #2117: Fix stale C++11 references in options.h and attributes.h Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2117 Fixes stale/misleading C++11 references flagged in #1264. - absl/base/options.h: corrected ABSL_OPTION_USE_STD_ORDERING comment, which said "C++11" but should match the project's actual minimum, consistent with the ABSL_OPTION_USE_STD_SOURCE_LOCATION option just above it in the same file (which already says C++17). - absl/base/attributes.h: removed an outdated "C++11 mode" qualifier on XRay attribute requirements, since it's trivially satisfied given the project's current baseline. Fixes #1264 Merge e06df350a02ae673c6423ce3a23e03a82295a54b into de367ce0cdd56ef1004bd878c0c24d36067061f3 Merging this change closes #2117 COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/2117 from DrishtiTripathi2230:fix-1264-cpp11-leftovers e06df350a02ae673c6423ce3a23e03a82295a54b PiperOrigin-RevId: 949773349 Change-Id: Ifb71ca2842fa14e0b9a241e67bb6dafed9abc143
diff --git a/absl/base/attributes.h b/absl/base/attributes.h index 525824a..bd43e66 100644 --- a/absl/base/attributes.h +++ b/absl/base/attributes.h
@@ -494,8 +494,8 @@ // // These attributes only take effect when the following conditions are met: // -// * The file/target is built in at least C++11 mode, with a Clang compiler -// that supports XRay attributes. +// * The file/target is built with a Clang compiler that supports XRay +// attributes. // * The file/target is built with the -fxray-instrument flag set for the // Clang/LLVM compiler. // * The function is defined in the translation unit (the compiler honors the
diff --git a/absl/base/options.h b/absl/base/options.h index 033eac3..01cb80a 100644 --- a/absl/base/options.h +++ b/absl/base/options.h
@@ -107,8 +107,8 @@ // implemented as aliases to the std:: ordering types, or as an independent // implementation. // -// A value of 0 means to use Abseil's implementation. This requires only C++11 -// support, and is expected to work on every toolchain we support. +// A value of 0 means to use Abseil's implementation. This is expected to +// work on every toolchain we support. // // A value of 1 means to use aliases. This requires that all code using Abseil // is built in C++20 mode or later.