diff options
author | Patrick O'Connell <poconnell93@gmail.com> | 2024-06-22 03:31:27 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-06-22 03:32:34 -0700 |
commit | 6f972e239f668fa29cab43d7968692cd285997a9 (patch) | |
tree | c6b19bc189133231c4941bf60f59933b4375d057 /absl/base | |
parent | 8a28a0c8732ba3bf0191fb6292fcad6e5948a047 (diff) |
PR #1692: Add missing `<utility>` include
Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1692
`optimization.h` uses `std::unreachable()` if available but does not include `<utility>`, causing errors in `absl/strings/ascii.cc`.
Merge bf912bb4e38341d6152ee145ec2be00251c42552 into 8a28a0c8732ba3bf0191fb6292fcad6e5948a047
Merging this change closes #1692
COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1692 from poconn:optimization_missing_include bf912bb4e38341d6152ee145ec2be00251c42552
PiperOrigin-RevId: 645643983
Change-Id: I3966984afa81f2f6bce65dd872d326f0af114bfa
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/optimization.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/base/optimization.h b/absl/base/optimization.h index f9859958..fb7ac37c 100644 --- a/absl/base/optimization.h +++ b/absl/base/optimization.h @@ -23,6 +23,7 @@ #define ABSL_BASE_OPTIMIZATION_H_ #include <assert.h> +#include <utility> #include "absl/base/config.h" #include "absl/base/options.h" |