aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-08-05 11:19:25 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-08-05 11:35:47 +0300
commit0dc3baade9c1b37ef1ee3d79451234c02fe64ced (patch)
tree9881b978058a3c686cc5e2be2e8bcabd103e7315 /contrib/libs
parent151b1ad35c1c71f46ce31d487c0e4d415c58f54e (diff)
downloadydb-0dc3baade9c1b37ef1ee3d79451234c02fe64ced.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/cxxsupp/libcxxmsvc/include/string3
-rw-r--r--contrib/libs/cxxsupp/libcxxmsvc/include/string_view2
2 files changed, 3 insertions, 2 deletions
diff --git a/contrib/libs/cxxsupp/libcxxmsvc/include/string b/contrib/libs/cxxsupp/libcxxmsvc/include/string
index a1bfff1f6a..4e4bb86464 100644
--- a/contrib/libs/cxxsupp/libcxxmsvc/include/string
+++ b/contrib/libs/cxxsupp/libcxxmsvc/include/string
@@ -534,6 +534,7 @@ basic_string<char32_t> operator "" s( const char32_t *str, size_t len ); // C++1
#include <initializer_list>
#include <iosfwd>
#include <iterator>
+#include <limits>
#include <memory>
#include <stdexcept>
#include <string_view>
@@ -772,7 +773,7 @@ private:
public:
_LIBCPP_TEMPLATE_DATA_VIS
- static const size_type npos = -1;
+ static const size_type npos = numeric_limits<size_type>::max();
_LIBCPP_INLINE_VISIBILITY basic_string()
_NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value);
diff --git a/contrib/libs/cxxsupp/libcxxmsvc/include/string_view b/contrib/libs/cxxsupp/libcxxmsvc/include/string_view
index 81d8c8a2b7..a55ea4ede3 100644
--- a/contrib/libs/cxxsupp/libcxxmsvc/include/string_view
+++ b/contrib/libs/cxxsupp/libcxxmsvc/include/string_view
@@ -264,7 +264,7 @@ public:
typedef const_reverse_iterator reverse_iterator;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
- static _LIBCPP_CONSTEXPR const size_type npos = -1; // size_type(-1);
+ static _LIBCPP_CONSTEXPR const size_type npos = numeric_limits<size_type>::max(); // size_type(-1);
static_assert((!is_array<value_type>::value), "Character type of basic_string_view must not be an array");
static_assert(( is_standard_layout<value_type>::value), "Character type of basic_string_view must be standard-layout");