Browse Source

Update contrib/restricted/boost/asio to 1.72.0
e5cceab5ed2f7b11cd8f2f777ab3be91910b28a0

thegeorg 11 months ago
parent
commit
3920f7b2a1

+ 40 - 0
contrib/restricted/boost/asio/include/boost/asio/detail/config.hpp

@@ -314,6 +314,46 @@
 # endif // !defined(BOOST_ASIO_DISABLE_ALIAS_TEMPLATES)
 # endif // !defined(BOOST_ASIO_DISABLE_ALIAS_TEMPLATES)
 #endif // !defined(BOOST_ASIO_HAS_ALIAS_TEMPLATES)
 #endif // !defined(BOOST_ASIO_HAS_ALIAS_TEMPLATES)
 
 
+// Support return type deduction on compilers known to allow it.
+#if !defined(BOOST_ASIO_HAS_RETURN_TYPE_DEDUCTION)
+# if !defined(BOOST_ASIO_DISABLE_RETURN_TYPE_DEDUCTION)
+#  if defined(__clang__)
+#   if __has_feature(__cxx_return_type_deduction__)
+#    define BOOST_ASIO_HAS_RETURN_TYPE_DEDUCTION 1
+#   endif // __has_feature(__cxx_alias_templates__)
+#  elif (__cplusplus >= 201402)
+#   define BOOST_ASIO_HAS_RETURN_TYPE_DEDUCTION 1
+#  elif defined(__cpp_return_type_deduction)
+#   if (__cpp_return_type_deduction >= 201304)
+#    define BOOST_ASIO_HAS_RETURN_TYPE_DEDUCTION 1
+#   endif // (__cpp_return_type_deduction >= 201304)
+#  endif // defined(__cpp_return_type_deduction)
+# endif // !defined(BOOST_ASIO_DISABLE_RETURN_TYPE_DEDUCTION)
+#endif // !defined(BOOST_ASIO_HAS_RETURN_TYPE_DEDUCTION)
+
+// Support default function template arguments on compilers known to allow it.
+#if !defined(BOOST_ASIO_HAS_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS)
+# if !defined(BOOST_ASIO_DISABLE_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS)
+#  if (__cplusplus >= 201103)
+#   define BOOST_ASIO_HAS_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS 1
+#  endif // (__cplusplus >= 201103)
+# endif // !defined(BOOST_ASIO_DISABLE_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS)
+#endif // !defined(BOOST_ASIO_HAS_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS)
+
+// Support concepts on compilers known to allow them.
+#if !defined(BOOST_ASIO_HAS_CONCEPTS)
+# if !defined(BOOST_ASIO_DISABLE_CONCEPTS)
+#  if defined(__cpp_concepts)
+#   define BOOST_ASIO_HAS_CONCEPTS 1
+#   if (__cpp_concepts >= 201707)
+#    define BOOST_ASIO_CONCEPT concept
+#   else // (__cpp_concepts >= 201707)
+#    define BOOST_ASIO_CONCEPT concept bool
+#   endif // (__cpp_concepts >= 201707)
+#  endif // defined(__cpp_concepts)
+# endif // !defined(BOOST_ASIO_DISABLE_CONCEPTS)
+#endif // !defined(BOOST_ASIO_HAS_CONCEPTS)
+
 // Standard library support for system errors.
 // Standard library support for system errors.
 # if !defined(BOOST_ASIO_DISABLE_STD_SYSTEM_ERROR)
 # if !defined(BOOST_ASIO_DISABLE_STD_SYSTEM_ERROR)
 #  if defined(__clang__)
 #  if defined(__clang__)

+ 3 - 0
contrib/restricted/boost/asio/include/boost/asio/detail/type_traits.hpp

@@ -32,6 +32,7 @@
 # include <boost/type_traits/is_same.hpp>
 # include <boost/type_traits/is_same.hpp>
 # include <boost/type_traits/remove_pointer.hpp>
 # include <boost/type_traits/remove_pointer.hpp>
 # include <boost/type_traits/remove_reference.hpp>
 # include <boost/type_traits/remove_reference.hpp>
+# include <boost/utility/declval.hpp>
 # include <boost/utility/enable_if.hpp>
 # include <boost/utility/enable_if.hpp>
 # include <boost/utility/result_of.hpp>
 # include <boost/utility/result_of.hpp>
 #endif // defined(BOOST_ASIO_HAS_TYPE_TRAITS)
 #endif // defined(BOOST_ASIO_HAS_TYPE_TRAITS)
@@ -43,6 +44,7 @@ namespace asio {
 using std::add_const;
 using std::add_const;
 using std::conditional;
 using std::conditional;
 using std::decay;
 using std::decay;
+using std::declval;
 using std::enable_if;
 using std::enable_if;
 using std::false_type;
 using std::false_type;
 using std::integral_constant;
 using std::integral_constant;
@@ -68,6 +70,7 @@ template <bool Condition, typename Type = void>
 struct enable_if : boost::enable_if_c<Condition, Type> {};
 struct enable_if : boost::enable_if_c<Condition, Type> {};
 using boost::conditional;
 using boost::conditional;
 using boost::decay;
 using boost::decay;
+using boost::declval;
 using boost::false_type;
 using boost::false_type;
 using boost::integral_constant;
 using boost::integral_constant;
 using boost::is_base_of;
 using boost::is_base_of;

+ 2 - 2
contrib/restricted/boost/asio/ya.make

@@ -9,9 +9,9 @@ LICENSE(
 
 
 LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
 LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
 
 
-VERSION(1.71.0)
+VERSION(1.72.0)
 
 
-ORIGINAL_SOURCE(https://github.com/boostorg/asio/archive/boost-1.71.0.tar.gz)
+ORIGINAL_SOURCE(https://github.com/boostorg/asio/archive/boost-1.72.0.tar.gz)
 
 
 PEERDIR(
 PEERDIR(
     contrib/libs/openssl
     contrib/libs/openssl