diff options
author | robot-contrib <[email protected]> | 2025-08-27 00:58:26 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2025-08-27 01:14:42 +0300 |
commit | 710eac95f835d057463b6549072fe3beecfe2cd0 (patch) | |
tree | 0e77ceed1717a9363ca48cb8eebd6f0138df82a0 | |
parent | 991220ad10f1d1ca0813dd02ec329da7a6c6dc70 (diff) |
Update contrib/restricted/boost/any to 1.89.0
commit_hash:dfdd1c1afd0d7f6dfcb9257c5fceba6be867eed8
12 files changed, 135 insertions, 30 deletions
diff --git a/contrib/restricted/boost/any/.yandex_meta/default.nix b/contrib/restricted/boost/any/.yandex_meta/default.nix index 5a122bafa51..c3d366633de 100644 --- a/contrib/restricted/boost/any/.yandex_meta/default.nix +++ b/contrib/restricted/boost/any/.yandex_meta/default.nix @@ -1,13 +1,13 @@ self: super: with self; { boost_any = stdenv.mkDerivation rec { pname = "boost_any"; - version = "1.88.0"; + version = "1.89.0"; src = fetchFromGitHub { owner = "boostorg"; repo = "any"; rev = "boost-${version}"; - hash = "sha256-hcJ7q6nkExmg8i1cjPA0eqrVJ5u4vluvtdrUwzUV+5c="; + hash = "sha256-BSDvDYphP60T8s3IdtOiA3iyQSz+W+E0QlsZReHtoG8="; }; }; } diff --git a/contrib/restricted/boost/any/.yandex_meta/devtools.copyrights.report b/contrib/restricted/boost/any/.yandex_meta/devtools.copyrights.report index 0f08c052fe4..88de57f60f2 100644 --- a/contrib/restricted/boost/any/.yandex_meta/devtools.copyrights.report +++ b/contrib/restricted/boost/any/.yandex_meta/devtools.copyrights.report @@ -42,7 +42,7 @@ BELONGS ya.make Score : 100.00 Match type : COPYRIGHT Files with this license: - include/boost/any.hpp [360:360] + include/boost/any.hpp [373:373] KEEP COPYRIGHT_SERVICE_LABEL 56575c8d851d98611bafdb62f758a33b BELONGS ya.make @@ -67,6 +67,7 @@ BELONGS ya.make Match type : COPYRIGHT Files with this license: include/boost/any/basic_any.hpp [1:2] + include/boost/any/detail/config.hpp [1:1] include/boost/any/detail/placeholder.hpp [1:1] include/boost/any/fwd.hpp [1:1] @@ -79,7 +80,7 @@ BELONGS ya.make Score : 100.00 Match type : COPYRIGHT Files with this license: - include/boost/any.hpp [361:361] + include/boost/any.hpp [374:374] KEEP COPYRIGHT_SERVICE_LABEL fe4a46e0c33e697b28d96bddcd54d9da BELONGS ya.make diff --git a/contrib/restricted/boost/any/.yandex_meta/devtools.licenses.report b/contrib/restricted/boost/any/.yandex_meta/devtools.licenses.report index 70411f7b0ff..82c3754af5d 100644 --- a/contrib/restricted/boost/any/.yandex_meta/devtools.licenses.report +++ b/contrib/restricted/boost/any/.yandex_meta/devtools.licenses.report @@ -45,9 +45,10 @@ BELONGS ya.make Match type : NOTICE Links : http://www.boost.org/LICENSE_1_0.txt, http://www.boost.org/users/license.html, https://spdx.org/licenses/BSL-1.0 Files with this license: - include/boost/any.hpp [363:365] + include/boost/any.hpp [376:378] include/boost/any/bad_any_cast.hpp [3:5] include/boost/any/basic_any.hpp [4:6] + include/boost/any/detail/config.hpp [3:5] include/boost/any/detail/placeholder.hpp [3:5] include/boost/any/fwd.hpp [3:5] include/boost/any/unique_any.hpp [3:5] diff --git a/contrib/restricted/boost/any/README.md b/contrib/restricted/boost/any/README.md index 63eedd5dcd2..d42569b66a9 100644 --- a/contrib/restricted/boost/any/README.md +++ b/contrib/restricted/boost/any/README.md @@ -5,8 +5,8 @@ Boost.Any is a part of the [Boost C++ Libraries](https://github.com/boostorg). I ### Test results @ | Build | Tests coverage | More info ----------------|-------------- | -------------- |----------- -Develop branch: | [](https://github.com/boostorg/any/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/any/branch/develop) | [](https://coveralls.io/r/boostorg/any?branch=develop) | [details...](https://www.boost.org/development/tests/develop/developer/any.html) -Master branch: | [](https://github.com/boostorg/any/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/any/branch/master) | [](https://coveralls.io/r/boostorg/any?branch=master) | [details...](https://www.boost.org/development/tests/master/developer/any.html) +Develop branch: | [](https://github.com/boostorg/any/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/any/branch/develop) | [](https://coveralls.io/r/boostorg/any?branch=develop) | [details...](https://regression.boost.io/develop/developer/any.html) +Master branch: | [](https://github.com/boostorg/any/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/any/branch/master) | [](https://coveralls.io/r/boostorg/any?branch=master) | [details...](https://regression.boost.io/master/developer/any.html) [Latest developer documentation](https://www.boost.org/doc/libs/develop/doc/html/any.html) diff --git a/contrib/restricted/boost/any/include/boost/any.hpp b/contrib/restricted/boost/any/include/boost/any.hpp index a8e4d8e453a..331eb2f29f4 100644 --- a/contrib/restricted/boost/any/include/boost/any.hpp +++ b/contrib/restricted/boost/any/include/boost/any.hpp @@ -3,13 +3,26 @@ #ifndef BOOST_ANY_INCLUDED #define BOOST_ANY_INCLUDED +#include <boost/any/detail/config.hpp> + +#if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + +/// \file boost/any.hpp +/// \brief \copybrief boost::any + +#ifndef BOOST_ANY_INTERFACE_UNIT #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif -/// \file boost/any.hpp -/// \brief \copybrief boost::any +#include <memory> // for std::addressof +#include <type_traits> + +#include <boost/throw_exception.hpp> +#include <boost/type_index.hpp> + +#endif // #ifndef BOOST_ANY_INTERFACE_UNIT // what: variant type boost::any // who: contributed by Kevlin Henney, @@ -21,14 +34,11 @@ #include <boost/any/bad_any_cast.hpp> #include <boost/any/fwd.hpp> #include <boost/any/detail/placeholder.hpp> -#include <boost/throw_exception.hpp> -#include <boost/type_index.hpp> -#include <memory> // for std::addressof -#include <type_traits> +namespace boost { + +BOOST_ANY_BEGIN_MODULE_EXPORT -namespace boost -{ /// \brief A class whose instances can hold instances of any /// type that satisfies \forcedlink{ValueType} requirements. class any @@ -355,6 +365,9 @@ namespace boost ); return boost::any_cast<ValueType>(operand); } + +BOOST_ANY_END_MODULE_EXPORT + } // Copyright Kevlin Henney, 2000, 2001, 2002. All rights reserved. @@ -364,4 +377,6 @@ namespace boost // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) +#endif // #if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + #endif diff --git a/contrib/restricted/boost/any/include/boost/any/bad_any_cast.hpp b/contrib/restricted/boost/any/include/boost/any/bad_any_cast.hpp index 647f2c53907..e15ce169f51 100644 --- a/contrib/restricted/boost/any/include/boost/any/bad_any_cast.hpp +++ b/contrib/restricted/boost/any/include/boost/any/bad_any_cast.hpp @@ -9,6 +9,11 @@ #ifndef BOOST_ANYS_BAD_ANY_CAST_HPP_INCLUDED #define BOOST_ANYS_BAD_ANY_CAST_HPP_INCLUDED +#include <boost/any/detail/config.hpp> + +#if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + +#ifndef BOOST_ANY_INTERFACE_UNIT #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once @@ -19,9 +24,12 @@ #endif #include <stdexcept> +#endif // #ifndef BOOST_ANY_INTERFACE_UNIT namespace boost { +BOOST_ANY_BEGIN_MODULE_EXPORT + /// The exception thrown in the event of a failed boost::any_cast of /// an boost::any, boost::anys::basic_any or boost::anys::unique_any value. class BOOST_SYMBOL_VISIBLE bad_any_cast : @@ -39,7 +47,10 @@ public: } }; +BOOST_ANY_END_MODULE_EXPORT + } // namespace boost +#endif // #if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) #endif // #ifndef BOOST_ANYS_BAD_ANY_CAST_HPP_INCLUDED diff --git a/contrib/restricted/boost/any/include/boost/any/basic_any.hpp b/contrib/restricted/boost/any/include/boost/any/basic_any.hpp index 7911849ad51..127f2937e25 100644 --- a/contrib/restricted/boost/any/include/boost/any/basic_any.hpp +++ b/contrib/restricted/boost/any/include/boost/any/basic_any.hpp @@ -10,28 +10,36 @@ #ifndef BOOST_ANYS_BASIC_ANY_HPP_INCLUDED #define BOOST_ANYS_BASIC_ANY_HPP_INCLUDED +#include <boost/any/detail/config.hpp> + +#if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + +/// \file boost/any/basic_any.hpp +/// \brief \copybrief boost::anys::basic_any + +#ifndef BOOST_ANY_INTERFACE_UNIT #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif -/// \file boost/any/basic_any.hpp -/// \brief \copybrief boost::anys::basic_any +#include <memory> // for std::addressof +#include <type_traits> -#include <boost/any/bad_any_cast.hpp> -#include <boost/any/fwd.hpp> #include <boost/assert.hpp> #include <boost/type_index.hpp> #include <boost/throw_exception.hpp> +#endif // #ifndef BOOST_ANY_INTERFACE_UNIT -#include <memory> // for std::addressof -#include <type_traits> - +#include <boost/any/bad_any_cast.hpp> +#include <boost/any/fwd.hpp> namespace boost { namespace anys { +BOOST_ANY_BEGIN_MODULE_EXPORT + /// \brief A class with customizable Small Object Optimization whose /// instances can hold instances of any type that satisfies /// \forcedlink{ValueType} requirements. Use boost::any instead if not sure. @@ -546,11 +554,19 @@ namespace anys { } /// @endcond +BOOST_ANY_END_MODULE_EXPORT + } // namespace anys +BOOST_ANY_BEGIN_MODULE_EXPORT + using boost::anys::any_cast; using boost::anys::unsafe_any_cast; +BOOST_ANY_END_MODULE_EXPORT + } // namespace boost +#endif // #if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + #endif // #ifndef BOOST_ANYS_BASIC_ANY_HPP_INCLUDED diff --git a/contrib/restricted/boost/any/include/boost/any/detail/config.hpp b/contrib/restricted/boost/any/include/boost/any/detail/config.hpp new file mode 100644 index 00000000000..1de5977b658 --- /dev/null +++ b/contrib/restricted/boost/any/include/boost/any/detail/config.hpp @@ -0,0 +1,22 @@ +// Copyright Antony Polukhin, 2021-2025. +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +#ifndef BOOST_ANY_ANYS_DETAIL_CONFIG_HPP +#define BOOST_ANY_ANYS_DETAIL_CONFIG_HPP + +#ifdef BOOST_ANY_INTERFACE_UNIT +# define BOOST_ANY_BEGIN_MODULE_EXPORT export { +# define BOOST_ANY_END_MODULE_EXPORT } +#else +# define BOOST_ANY_BEGIN_MODULE_EXPORT +# define BOOST_ANY_END_MODULE_EXPORT +#endif + +#if defined(BOOST_USE_MODULES) && !defined(BOOST_ANY_INTERFACE_UNIT) +import boost.any; +#endif + +#endif // #ifndef BOOST_ANY_ANYS_DETAIL_CONFIG_HPP diff --git a/contrib/restricted/boost/any/include/boost/any/detail/placeholder.hpp b/contrib/restricted/boost/any/include/boost/any/detail/placeholder.hpp index 8035dc9ac5b..4e8036a43e2 100644 --- a/contrib/restricted/boost/any/include/boost/any/detail/placeholder.hpp +++ b/contrib/restricted/boost/any/include/boost/any/detail/placeholder.hpp @@ -7,12 +7,18 @@ #ifndef BOOST_ANY_ANYS_DETAIL_PLACEHOLDER_HPP #define BOOST_ANY_ANYS_DETAIL_PLACEHOLDER_HPP +#include <boost/any/detail/config.hpp> + +#if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + +#ifndef BOOST_ANY_INTERFACE_UNIT #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif #include <boost/type_index.hpp> +#endif /// @cond namespace boost { @@ -30,4 +36,6 @@ public: } // namespace boost /// @endcond +#endif // #if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + #endif // #ifndef BOOST_ANY_ANYS_DETAIL_PLACEHOLDER_HPP diff --git a/contrib/restricted/boost/any/include/boost/any/fwd.hpp b/contrib/restricted/boost/any/include/boost/any/fwd.hpp index 047d9555bdc..0263a61676c 100644 --- a/contrib/restricted/boost/any/include/boost/any/fwd.hpp +++ b/contrib/restricted/boost/any/include/boost/any/fwd.hpp @@ -8,10 +8,16 @@ #ifndef BOOST_ANY_ANYS_FWD_HPP #define BOOST_ANY_ANYS_FWD_HPP +#include <boost/any/detail/config.hpp> + +#if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + +#ifndef BOOST_ANY_INTERFACE_UNIT #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif +#endif // #ifndef BOOST_ANY_INTERFACE_UNIT /// \file boost/any/fwd.hpp /// \brief Forward declarations of Boost.Any library types. @@ -19,15 +25,23 @@ /// @cond namespace boost { +BOOST_ANY_BEGIN_MODULE_EXPORT + class any; +BOOST_ANY_END_MODULE_EXPORT + namespace anys { +BOOST_ANY_BEGIN_MODULE_EXPORT + class unique_any; template<std::size_t OptimizeForSize = sizeof(void*), std::size_t OptimizeForAlignment = alignof(void*)> class basic_any; +BOOST_ANY_END_MODULE_EXPORT + namespace detail { template <class T> @@ -52,4 +66,6 @@ namespace detail { } // namespace boost /// @endcond +#endif // #if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + #endif // #ifndef BOOST_ANY_ANYS_FWD_HPP diff --git a/contrib/restricted/boost/any/include/boost/any/unique_any.hpp b/contrib/restricted/boost/any/include/boost/any/unique_any.hpp index 818311367b4..6af8406b40e 100644 --- a/contrib/restricted/boost/any/include/boost/any/unique_any.hpp +++ b/contrib/restricted/boost/any/include/boost/any/unique_any.hpp @@ -9,27 +9,35 @@ #ifndef BOOST_ANYS_UNIQUE_ANY_HPP_INCLUDED #define BOOST_ANYS_UNIQUE_ANY_HPP_INCLUDED +#include <boost/any/detail/config.hpp> + +#if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) + +/// \file boost/any/unique_any.hpp +/// \brief \copybrief boost::anys::unique_any + +#ifndef BOOST_ANY_INTERFACE_UNIT #include <boost/config.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif -/// \file boost/any/unique_any.hpp -/// \brief \copybrief boost::anys::unique_any - #include <memory> // for std::unique_ptr #include <utility> #include <type_traits> +#include <boost/throw_exception.hpp> +#include <boost/type_index.hpp> +#endif // #ifndef BOOST_ANY_INTERFACE_UNIT + #include <boost/any/fwd.hpp> #include <boost/any/bad_any_cast.hpp> #include <boost/any/detail/placeholder.hpp> -#include <boost/throw_exception.hpp> -#include <boost/type_index.hpp> - namespace boost { namespace anys { +BOOST_ANY_BEGIN_MODULE_EXPORT + /// Helper type for providing emplacement type to the constructor. template <class T> struct in_place_type_t @@ -342,12 +350,19 @@ inline T any_cast(unique_any&& operand) return std::move(anys::any_cast<T&>(operand)); } +BOOST_ANY_END_MODULE_EXPORT + } // namespace anys +BOOST_ANY_BEGIN_MODULE_EXPORT + using boost::anys::any_cast; using boost::anys::unsafe_any_cast; +BOOST_ANY_END_MODULE_EXPORT + } // namespace boost +#endif // #if !defined(BOOST_USE_MODULES) || defined(BOOST_ANY_INTERFACE_UNIT) #endif // BOOST_ANYS_UNIQUE_ANY_HPP_INCLUDED diff --git a/contrib/restricted/boost/any/ya.make b/contrib/restricted/boost/any/ya.make index 10ee9ee3ac0..35c332d3f94 100644 --- a/contrib/restricted/boost/any/ya.make +++ b/contrib/restricted/boost/any/ya.make @@ -6,9 +6,9 @@ LICENSE(BSL-1.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -VERSION(1.88.0) +VERSION(1.89.0) -ORIGINAL_SOURCE(https://github.com/boostorg/any/archive/boost-1.88.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/any/archive/boost-1.89.0.tar.gz) PEERDIR( contrib/restricted/boost/config |