summaryrefslogtreecommitdiff
path: root/absl/functional
diff options
context:
space:
mode:
authorGravatar Copybara-Service <copybara-worker@google.com>2023-05-18 07:35:10 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-05-18 07:35:10 -0700
commitf6f65f9bcd775b9a9a7bf0345018a45a85c8815b (patch)
tree49f0dc7417c15b5d4fd28a88af7f9605563cc574 /absl/functional
parent07e8b2a14d340984ff72fbea1181cc1469a4277a (diff)
parent486db28adc2c48c255fffbfde1d59415f4762b71 (diff)
Merge pull request #1448 from glandium:clang
PiperOrigin-RevId: 533121605 Change-Id: I82390045985db5db56e93c40eae24cdcd93e3ab4
Diffstat (limited to 'absl/functional')
-rw-r--r--absl/functional/internal/any_invocable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/functional/internal/any_invocable.h b/absl/functional/internal/any_invocable.h
index d41b7e56..a5c22ad0 100644
--- a/absl/functional/internal/any_invocable.h
+++ b/absl/functional/internal/any_invocable.h
@@ -197,7 +197,7 @@ union TypeErasedState {
template <class T>
T& ObjectInLocalStorage(TypeErasedState* const state) {
// We launder here because the storage may be reused with the same type.
-#if ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L
+#if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606L
return *std::launder(reinterpret_cast<T*>(&state->storage));
#elif ABSL_HAVE_BUILTIN(__builtin_launder)
return *__builtin_launder(reinterpret_cast<T*>(&state->storage));