diff options
author | maxim-yurchuk <[email protected]> | 2024-10-09 12:29:46 +0300 |
---|---|---|
committer | maxim-yurchuk <[email protected]> | 2024-10-09 13:14:22 +0300 |
commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/libs/cxxsupp/libcxx/patches/49-string-view.patch | |
parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/patches/49-string-view.patch')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/patches/49-string-view.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/patches/49-string-view.patch b/contrib/libs/cxxsupp/libcxx/patches/49-string-view.patch new file mode 100644 index 00000000000..3382ebb2ecb --- /dev/null +++ b/contrib/libs/cxxsupp/libcxx/patches/49-string-view.patch @@ -0,0 +1,32 @@ +diff --git a/include/string_view b/include/string_view +index 1a94ac0..07fcf44 100644 +--- a/include/string_view ++++ b/include/string_view +@@ -304,6 +304,9 @@ public: + _LIBCPP_INLINE_VISIBILITY + basic_string_view& operator=(const basic_string_view&) _NOEXCEPT = default; + ++ _LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY ++ basic_string_view(nullptr_t, size_t) = delete; ++ + _LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY + basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT + : __data_(__s), __size_(__len) +@@ -348,7 +351,7 @@ public: + basic_string_view(const _CharT* __s) + : __data_(__s), __size_(_VSTD::__char_traits_length_checked<_Traits>(__s)) {} + +-#if _LIBCPP_STD_VER >= 23 ++#if _LIBCPP_STD_VER >= 20 + basic_string_view(nullptr_t) = delete; + #endif + +@@ -734,7 +737,7 @@ public: + { return ends_with(basic_string_view(__s)); } + #endif + +-#if _LIBCPP_STD_VER >= 23 ++#if _LIBCPP_STD_VER >= 20 + constexpr _LIBCPP_INLINE_VISIBILITY + bool contains(basic_string_view __sv) const noexcept + { return find(__sv) != npos; } |