summaryrefslogtreecommitdiff
path: root/absl/meta
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2024-04-02 23:41:16 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-04-02 23:42:08 -0700
commitd5e426097680beafbf72d6c88f50a680736ec770 (patch)
tree02802f874543540fe27294a3547faafb5c0ac3cf /absl/meta
parent643c7bab4994d720125fb30e8fb3a10e99bcbb47 (diff)
Temporarily revert dangling std::string_view detection until dependent is fixed
PiperOrigin-RevId: 621413395 Change-Id: I20e9fac94e81e59c0d723f115670c8cf68e9b44a
Diffstat (limited to 'absl/meta')
-rw-r--r--absl/meta/type_traits.h5
-rw-r--r--absl/meta/type_traits_test.cc6
2 files changed, 0 insertions, 11 deletions
diff --git a/absl/meta/type_traits.h b/absl/meta/type_traits.h
index ded55820..a1be47f1 100644
--- a/absl/meta/type_traits.h
+++ b/absl/meta/type_traits.h
@@ -630,11 +630,6 @@ template <typename T>
struct IsView : std::integral_constant<bool, std::is_pointer<T>::value ||
IsViewImpl<T>::value> {};
-#ifdef ABSL_HAVE_STD_STRING_VIEW
-template <typename Char, typename Traits>
-struct IsView<std::basic_string_view<Char, Traits>> : std::true_type {};
-#endif
-
#ifdef __cpp_lib_span
template <typename T>
struct IsView<std::span<T>> : std::true_type {};
diff --git a/absl/meta/type_traits_test.cc b/absl/meta/type_traits_test.cc
index 1e056bb2..e4107e53 100644
--- a/absl/meta/type_traits_test.cc
+++ b/absl/meta/type_traits_test.cc
@@ -45,12 +45,6 @@ static_assert(IsOwnerAndNotView<std::string>::value,
"string is an owner, not a view");
static_assert(IsOwnerAndNotView<std::wstring>::value,
"wstring is an owner, not a view");
-#ifdef ABSL_HAVE_STD_STRING_VIEW
-static_assert(!IsOwnerAndNotView<std::string_view>::value,
- "string_view is a view, not an owner");
-static_assert(!IsOwnerAndNotView<std::wstring_view>::value,
- "wstring_view is a view, not an owner");
-#endif
template <class T, class U>
struct simple_pair {