diff options
author | robot-contrib <[email protected]> | 2025-08-27 02:07:50 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2025-08-27 02:29:28 +0300 |
commit | 791beccadf935499cd508be1efd3a990a99cd57b (patch) | |
tree | 072636070dba306e53afca0f2d30dfbde2c8b9c3 | |
parent | 6d91fc04246cdb7a7162bf1d3cbc24f6e2be6af6 (diff) |
Update contrib/restricted/boost/scope to 1.89.0
commit_hash:fa452fb6e42a364699188a45acee6499207936a3
6 files changed, 24 insertions, 10 deletions
diff --git a/contrib/restricted/boost/scope/.yandex_meta/default.nix b/contrib/restricted/boost/scope/.yandex_meta/default.nix index 12846ee0fd2..ef41279cf19 100644 --- a/contrib/restricted/boost/scope/.yandex_meta/default.nix +++ b/contrib/restricted/boost/scope/.yandex_meta/default.nix @@ -1,13 +1,13 @@ self: super: with self; { boost_scope = stdenv.mkDerivation rec { pname = "boost_scope"; - version = "1.88.0"; + version = "1.89.0"; src = fetchFromGitHub { owner = "boostorg"; repo = "scope"; rev = "boost-${version}"; - hash = "sha256-vxVFs8V0EfNkif+mcr3mrOQFNqoDuR3bpzmpzS5mOcU="; + hash = "sha256-5j6Y+7v2scCRXuqWg7bC9unPFEGwQ/F9Dre2y/uNAus="; }; }; } diff --git a/contrib/restricted/boost/scope/README.md b/contrib/restricted/boost/scope/README.md index 21bc1f403c1..ea791ae8104 100644 --- a/contrib/restricted/boost/scope/README.md +++ b/contrib/restricted/boost/scope/README.md @@ -18,10 +18,10 @@ Section 3.3 Scope guard support \[scopeguard\]. The implementation also provides ### Build status -Branch | GitHub Actions| Test Matrix | Dependencies | -:-------------: | --------------| ----------- | ------------ | -[`master`](https://github.com/boostorg/scope/tree/master) | [](https://github.com/boostorg/scope/actions?query=branch%3Amaster) | [](https://www.boost.org/development/tests/master/developer/scope.html) | [](https://pdimov.github.io/boostdep-report/master/scope.html) -[`develop`](https://github.com/boostorg/scope/tree/develop) | [](https://github.com/boostorg/scope/actions?query=branch%3Adevelop) | [](https://www.boost.org/development/tests/develop/developer/scope.html) | [](https://pdimov.github.io/boostdep-report/develop/scope.html) +Branch | GitHub Actions | AppVeyor | Test Matrix | Dependencies | +:-------------: | -------------- | -------- | ----------- | ------------ | +[`master`](https://github.com/boostorg/scope/tree/master) | [](https://github.com/boostorg/scope/actions?query=branch%3Amaster) | [](https://ci.appveyor.com/project/Lastique/scope/branch/master) | [](https://www.boost.org/development/tests/master/developer/scope.html) | [](https://pdimov.github.io/boostdep-report/master/scope.html) +[`develop`](https://github.com/boostorg/scope/tree/develop) | [](https://github.com/boostorg/scope/actions?query=branch%3Adevelop) | [](https://ci.appveyor.com/project/Lastique/scope/branch/develop) | [](https://www.boost.org/development/tests/develop/developer/scope.html) | [](https://pdimov.github.io/boostdep-report/develop/scope.html) ### License diff --git a/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_invocable.hpp b/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_invocable.hpp index 987bf1b10b2..8b37c6f38ae 100644 --- a/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_invocable.hpp +++ b/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_invocable.hpp @@ -36,6 +36,8 @@ using std::is_invocable; #else +#include <utility> // std::declval + namespace boost { namespace scope { namespace detail { diff --git a/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_nothrow_invocable.hpp b/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_nothrow_invocable.hpp index 5510a5fb0a0..b963fbadd7f 100644 --- a/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_nothrow_invocable.hpp +++ b/contrib/restricted/boost/scope/include/boost/scope/detail/type_traits/is_nothrow_invocable.hpp @@ -36,6 +36,7 @@ using std::is_nothrow_invocable; #else +#include <utility> // std::declval #include <boost/scope/detail/type_traits/is_invocable.hpp> namespace boost { diff --git a/contrib/restricted/boost/scope/include/boost/scope/unique_resource.hpp b/contrib/restricted/boost/scope/include/boost/scope/unique_resource.hpp index 81683c4076a..64c08bd1c7b 100644 --- a/contrib/restricted/boost/scope/include/boost/scope/unique_resource.hpp +++ b/contrib/restricted/boost/scope/include/boost/scope/unique_resource.hpp @@ -15,6 +15,7 @@ #define BOOST_SCOPE_UNIQUE_RESOURCE_HPP_INCLUDED_ #include <new> // for placement new +#include <utility> // std::declval #include <type_traits> #include <boost/core/addressof.hpp> #include <boost/core/invoke_swap.hpp> @@ -1104,7 +1105,7 @@ struct dereference_traits< T, true > * unallocated resource values, which will create \c unique_resource objects in * unallocated state (the deleter will not be called on unallocated resource * values). - * + * * \tparam Resource Resource type. * \tparam Deleter Resource deleter function object type. * \tparam Traits Optional resource traits type. @@ -1365,7 +1366,7 @@ public: * \brief Returns \c true if the resource is allocated and to be reclaimed by the deleter, otherwise \c false. * * \note This method does not test the value of the resource. - * + * * **Throws:** Nothing. */ explicit operator bool () const noexcept @@ -1553,6 +1554,7 @@ public: * * **Effects:** As if `left.swap(right)`. */ +#if !defined(BOOST_MSVC) || (BOOST_MSVC < 1910 || BOOST_MSVC >= 1920) #if !defined(BOOST_SCOPE_DOXYGEN) template< bool Requires = detail::is_swappable< data >::value > friend typename std::enable_if< Requires >::type @@ -1564,6 +1566,15 @@ public: { left.swap(right); } +#else // !defined(BOOST_MSVC) || (BOOST_MSVC < 1910 || BOOST_MSVC >= 1920) + // MSVC 14.1 has broken name lookup in the context of the noexcept specifier of a friend function. + // https://developercommunity.visualstudio.com/t/Incorrect-name-lookup-in-the-noexcept-sp/10922514 + template< bool Requires = detail::is_swappable< data >::value, bool Noexcept = detail::is_nothrow_swappable< data >::value > + friend typename std::enable_if< Requires >::type swap(unique_resource& left, unique_resource& right) noexcept(Noexcept) + { + left.swap(right); + } +#endif // !defined(BOOST_MSVC) || (BOOST_MSVC < 1910 || BOOST_MSVC >= 1920) //! \cond private: diff --git a/contrib/restricted/boost/scope/ya.make b/contrib/restricted/boost/scope/ya.make index c232e7aea27..e757682d429 100644 --- a/contrib/restricted/boost/scope/ya.make +++ b/contrib/restricted/boost/scope/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/scope/archive/boost-1.88.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/scope/archive/boost-1.89.0.tar.gz) PEERDIR( contrib/restricted/boost/config |