diff options
author | Abseil Team <absl-team@google.com> | 2023-09-13 07:57:51 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-09-13 07:58:42 -0700 |
commit | 9e1789ffea47fdeb3133aa42aa9592f3673fb6ed (patch) | |
tree | a41313482e10f78947308b7a0aab28cdee09c501 /absl/strings/str_cat.h | |
parent | 6c6b2733f8453f53e4e07fe4e311d52d51aad100 (diff) |
Make `HasAbslStringify` public.
PiperOrigin-RevId: 565050503
Change-Id: I8f4c463be4ef513a2788745d1b454a7ede489152
Diffstat (limited to 'absl/strings/str_cat.h')
-rw-r--r-- | absl/strings/str_cat.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/absl/strings/str_cat.h b/absl/strings/str_cat.h index 554c89de..e7823683 100644 --- a/absl/strings/str_cat.h +++ b/absl/strings/str_cat.h @@ -102,7 +102,7 @@ #include "absl/base/attributes.h" #include "absl/base/port.h" #include "absl/meta/type_traits.h" -#include "absl/strings/internal/has_absl_stringify.h" +#include "absl/strings/has_absl_stringify.h" #include "absl/strings/internal/resize_uninitialized.h" #include "absl/strings/internal/stringify_sink.h" #include "absl/strings/numbers.h" @@ -357,7 +357,7 @@ class AlphaNum { : piece_(pc) {} template <typename T, typename = typename std::enable_if< - strings_internal::HasAbslStringify<T>::value>::type> + HasAbslStringify<T>::value>::type> AlphaNum( // NOLINT(runtime/explicit) const T& v ABSL_ATTRIBUTE_LIFETIME_BOUND, strings_internal::StringifySink&& sink ABSL_ATTRIBUTE_LIFETIME_BOUND = {}) @@ -384,17 +384,17 @@ class AlphaNum { template <typename T, typename = typename std::enable_if< std::is_enum<T>{} && std::is_convertible<T, int>{} && - !strings_internal::HasAbslStringify<T>::value>::type> + !HasAbslStringify<T>::value>::type> AlphaNum(T e) // NOLINT(runtime/explicit) : AlphaNum(+e) {} // This overload matches scoped enums. We must explicitly cast to the // underlying type, but use integral promotion for the same reason as above. template <typename T, - typename std::enable_if< - std::is_enum<T>{} && !std::is_convertible<T, int>{} && - !strings_internal::HasAbslStringify<T>::value, - char*>::type = nullptr> + typename std::enable_if<std::is_enum<T>{} && + !std::is_convertible<T, int>{} && + !HasAbslStringify<T>::value, + char*>::type = nullptr> AlphaNum(T e) // NOLINT(runtime/explicit) : AlphaNum(+static_cast<typename std::underlying_type<T>::type>(e)) {} |