diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-02-04 13:26:22 +0300 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-02-09 19:17:40 +0300 |
commit | 1426fda9f1c80647a1991dbe5b48c36a183b4d95 (patch) | |
tree | ce88fa2fadaaa7730b3b9b0feb8de6788c4d0954 /contrib/restricted | |
parent | 35d174ba70b5db9da3d0e1d26cec71fab5a37363 (diff) | |
download | ydb-1426fda9f1c80647a1991dbe5b48c36a183b4d95.tar.gz |
Update contrib/restricted/boost/asio to 1.71.0
Diffstat (limited to 'contrib/restricted')
4 files changed, 30 insertions, 20 deletions
diff --git a/contrib/restricted/boost/asio/include/boost/asio/buffer.hpp b/contrib/restricted/boost/asio/include/boost/asio/buffer.hpp index 6958b2e84a..1f12cac22d 100644 --- a/contrib/restricted/boost/asio/include/boost/asio/buffer.hpp +++ b/contrib/restricted/boost/asio/include/boost/asio/buffer.hpp @@ -2476,7 +2476,7 @@ struct is_dynamic_buffer_v2 * If @c BOOST_ASIO_NO_DYNAMIC_BUFFER_V1 is not defined, determines whether the * type satisfies the DynamicBuffer_v1 requirements. Otherwise, if @c * BOOST_ASIO_NO_DYNAMIC_BUFFER_V1 is defined, determines whether the type - * satisfies the DynamicBuffer_v1 requirements. + * satisfies the DynamicBuffer_v2 requirements. */ template <typename T> struct is_dynamic_buffer diff --git a/contrib/restricted/boost/asio/include/boost/asio/detail/config.hpp b/contrib/restricted/boost/asio/include/boost/asio/detail/config.hpp index 7a09afbd94..9063429c96 100644 --- a/contrib/restricted/boost/asio/include/boost/asio/detail/config.hpp +++ b/contrib/restricted/boost/asio/include/boost/asio/detail/config.hpp @@ -341,7 +341,7 @@ // Compliant C++11 compilers put noexcept specifiers on error_category members. #if !defined(BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT) -# if (BOOST_VERSION >= 105300) +# if defined(BOOST_ASIO_HAS_BOOST_CONFIG) && (BOOST_VERSION >= 105300) # define BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT BOOST_NOEXCEPT # elif defined(__clang__) # if __has_feature(__cxx_noexcept__) @@ -508,9 +508,9 @@ // Boost support for chrono. #if !defined(BOOST_ASIO_HAS_BOOST_CHRONO) # if !defined(BOOST_ASIO_DISABLE_BOOST_CHRONO) -# if (BOOST_VERSION >= 104700) +# if defined(BOOST_ASIO_HAS_BOOST_CONFIG) && (BOOST_VERSION >= 104700) # define BOOST_ASIO_HAS_BOOST_CHRONO 1 -# endif // (BOOST_VERSION >= 104700) +# endif // defined(BOOST_ASIO_HAS_BOOST_CONFIG) && (BOOST_VERSION >= 104700) # endif // !defined(BOOST_ASIO_DISABLE_BOOST_CHRONO) #endif // !defined(BOOST_ASIO_HAS_BOOST_CHRONO) @@ -1239,6 +1239,8 @@ # define BOOST_ASIO_HAS_THREADS 1 # elif defined(__APPLE__) # define BOOST_ASIO_HAS_THREADS 1 +# elif defined(__HAIKU__) +# define BOOST_ASIO_HAS_THREADS 1 # elif defined(_POSIX_THREADS) && (_POSIX_THREADS + 0 >= 0) # define BOOST_ASIO_HAS_THREADS 1 # elif defined(_PTHREADS) @@ -1254,6 +1256,8 @@ # define BOOST_ASIO_HAS_PTHREADS 1 # elif defined(_POSIX_THREADS) && (_POSIX_THREADS + 0 >= 0) # define BOOST_ASIO_HAS_PTHREADS 1 +# elif defined(__HAIKU__) +# define BOOST_ASIO_HAS_PTHREADS 1 # endif // defined(BOOST_ASIO_HAS_BOOST_CONFIG) && defined(BOOST_HAS_PTHREADS) # endif // defined(BOOST_ASIO_HAS_THREADS) #endif // !defined(BOOST_ASIO_HAS_PTHREADS) @@ -1434,11 +1438,11 @@ # endif // defined(BOOST_ASIO_MSVC) # endif // !defined(BOOST_ASIO_DISABLE_CO_AWAIT) # if defined(__clang__) -# if (__cpp_coroutines >= 201703) +# if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) # if __has_include(<coroutine>) # define BOOST_ASIO_HAS_CO_AWAIT 1 # endif // __has_include(<coroutine>) -# endif // (__cpp_coroutines >= 201703) +# endif // (__cplusplus >= 201703) && (__cpp_coroutines >= 201703) # endif // defined(__clang__) #endif // !defined(BOOST_ASIO_HAS_CO_AWAIT) diff --git a/contrib/restricted/boost/asio/include/boost/asio/detail/is_buffer_sequence.hpp b/contrib/restricted/boost/asio/include/boost/asio/detail/is_buffer_sequence.hpp index 89b8df762d..c52103206c 100644 --- a/contrib/restricted/boost/asio/include/boost/asio/detail/is_buffer_sequence.hpp +++ b/contrib/restricted/boost/asio/include/boost/asio/detail/is_buffer_sequence.hpp @@ -54,19 +54,22 @@ struct buffer_sequence_memfns_check { }; -template <typename> -char (&buffer_sequence_begin_helper(...))[2]; - #if defined(BOOST_ASIO_HAS_DECLTYPE) +template <typename> +char buffer_sequence_begin_helper(...); + template <typename T> -char buffer_sequence_begin_helper(T* t, +char (&buffer_sequence_begin_helper(T* t, typename enable_if<!is_same< decltype(boost::asio::buffer_sequence_begin(*t)), - void>::value>::type*); + void>::value>::type*))[2]; #else // defined(BOOST_ASIO_HAS_DECLTYPE) +template <typename> +char (&buffer_sequence_begin_helper(...))[2]; + template <typename T> char buffer_sequence_begin_helper(T* t, buffer_sequence_memfns_check< @@ -75,19 +78,22 @@ char buffer_sequence_begin_helper(T* t, #endif // defined(BOOST_ASIO_HAS_DECLTYPE) -template <typename> -char (&buffer_sequence_end_helper(...))[2]; - #if defined(BOOST_ASIO_HAS_DECLTYPE) +template <typename> +char buffer_sequence_end_helper(...); + template <typename T> -char buffer_sequence_end_helper(T* t, +char (&buffer_sequence_end_helper(T* t, typename enable_if<!is_same< decltype(boost::asio::buffer_sequence_end(*t)), - void>::value>::type*); + void>::value>::type*))[2]; #else // defined(BOOST_ASIO_HAS_DECLTYPE) +template <typename> +char (&buffer_sequence_end_helper(...))[2]; + template <typename T> char buffer_sequence_end_helper(T* t, buffer_sequence_memfns_check< @@ -215,8 +221,8 @@ char mutable_buffers_type_typedef_helper( template <typename T, typename Buffer> struct is_buffer_sequence_class : integral_constant<bool, - sizeof(buffer_sequence_begin_helper<T>(0)) != 1 && - sizeof(buffer_sequence_end_helper<T>(0)) != 1 && + sizeof(buffer_sequence_begin_helper<T>(0, 0)) != 1 && + sizeof(buffer_sequence_end_helper<T>(0, 0)) != 1 && sizeof(buffer_sequence_element_type_helper<T, Buffer>(0, 0)) == 1> { }; diff --git a/contrib/restricted/boost/asio/ya.make b/contrib/restricted/boost/asio/ya.make index 4fe8fe8d54..00f126b4df 100644 --- a/contrib/restricted/boost/asio/ya.make +++ b/contrib/restricted/boost/asio/ya.make @@ -9,9 +9,9 @@ LICENSE( LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -VERSION(1.70.0) +VERSION(1.71.0) -ORIGINAL_SOURCE(https://github.com/boostorg/asio/archive/boost-1.70.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/asio/archive/boost-1.71.0.tar.gz) PEERDIR( contrib/libs/openssl |