diff options
author | robot-contrib <[email protected]> | 2025-08-27 02:07:08 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2025-08-27 02:20:19 +0300 |
commit | 6d91fc04246cdb7a7162bf1d3cbc24f6e2be6af6 (patch) | |
tree | 7a9727bb0ed4ddfa6265b565d70ae06f895e8552 | |
parent | c5f5f8335a96a1b928772f83d7e7506be123b511 (diff) |
Update contrib/restricted/boost/conversion to 1.89.0
commit_hash:3ca5a1a6e3f8ee4eaf7ab918ccaa369d1c07b122
4 files changed, 19 insertions, 11 deletions
diff --git a/contrib/restricted/boost/conversion/.yandex_meta/default.nix b/contrib/restricted/boost/conversion/.yandex_meta/default.nix index 1edf3b4986b..e59e1c68d60 100644 --- a/contrib/restricted/boost/conversion/.yandex_meta/default.nix +++ b/contrib/restricted/boost/conversion/.yandex_meta/default.nix @@ -1,13 +1,13 @@ self: super: with self; { boost_conversion = stdenv.mkDerivation rec { pname = "boost_conversion"; - version = "1.88.0"; + version = "1.89.0"; src = fetchFromGitHub { owner = "boostorg"; repo = "conversion"; rev = "boost-${version}"; - hash = "sha256-mCKzZxY1OiK9B/s5CJQjY47C4mnC8OtQf9hAeECpBjE="; + hash = "sha256-95L3qltl5redVxlqe7oYcWUsDlpN6U2lZdi2YJpTgnQ="; }; }; } diff --git a/contrib/restricted/boost/conversion/README.md b/contrib/restricted/boost/conversion/README.md index b3a4d4cf346..044fb58b792 100644 --- a/contrib/restricted/boost/conversion/README.md +++ b/contrib/restricted/boost/conversion/README.md @@ -5,8 +5,8 @@ Boost.Conversion is one of the [Boost C++ Libraries](https://github.com/boostorg @ | Build | Tests coverage | More info ----------------|-------------- | -------------- |----------- -Develop branch: | [](https://github.com/boostorg/conversion/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/conversion/branch/develop) | [](https://coveralls.io/github/boostorg/conversion?branch=develop) | [details...](https://www.boost.org/development/tests/develop/developer/conversion.html) -Master branch: | [](https://github.com/boostorg/conversion/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/conversion/branch/master) | [](https://coveralls.io/github/boostorg/conversion?branch=master) | [details...](https://www.boost.org/development/tests/master/developer/conversion.html) +Develop branch: | [](https://github.com/boostorg/conversion/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/conversion/branch/develop) | [](https://coveralls.io/github/boostorg/conversion?branch=develop) | [details...](https://regression.boost.io/develop/developer/conversion.html) +Master branch: | [](https://github.com/boostorg/conversion/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/apolukhin/conversion/branch/master) | [](https://coveralls.io/github/boostorg/conversion?branch=master) | [details...](https://regression.boost.io/master/developer/conversion.html) [Latest developer documentation](https://www.boost.org/doc/libs/develop/doc/html/conversion.html) diff --git a/contrib/restricted/boost/conversion/include/boost/polymorphic_cast.hpp b/contrib/restricted/boost/conversion/include/boost/polymorphic_cast.hpp index dd9b194969f..f6162aa3d07 100644 --- a/contrib/restricted/boost/conversion/include/boost/polymorphic_cast.hpp +++ b/contrib/restricted/boost/conversion/include/boost/polymorphic_cast.hpp @@ -14,7 +14,7 @@ // 08 Nov 14 Add polymorphic_pointer_downcast (Boris Rasin) // 09 Jun 14 "cast.hpp" was renamed to "polymorphic_cast.hpp" and // inclusion of numeric_cast was removed (Antony Polukhin) -// 23 Jun 05 numeric_cast removed and redirected to the new verion (Fernando Cacciola) +// 23 Jun 05 numeric_cast removed and redirected to the new version (Fernando Cacciola) // 02 Apr 01 Removed BOOST_NO_LIMITS workarounds and included // <boost/limits.hpp> instead (the workaround did not // actually compile when BOOST_NO_LIMITS was defined in @@ -31,7 +31,7 @@ // 19 Oct 00 Fix numeric_cast for floating-point types (Dave Abrahams) // 15 Jul 00 Suppress numeric_cast warnings for GCC, Borland and MSVC // (Dave Abrahams) -// 30 Jun 00 More MSVC6 wordarounds. See comments below. (Dave Abrahams) +// 30 Jun 00 More MSVC6 workarounds. See comments below. (Dave Abrahams) // 28 Jun 00 Removed implicit_cast<>. See comment below. (Beman Dawes) // 27 Jun 00 More MSVC6 workarounds // 15 Jun 00 Add workarounds for MSVC6 @@ -62,6 +62,12 @@ # include <typeinfo> # include <type_traits> +#if defined(__cpp_constexpr) && __cpp_constexpr >= 201907L +#define BOOST_CONVERSION_IMPL_CONSTEXPR_DYN_CAST constexpr +#else +#define BOOST_CONVERSION_IMPL_CONSTEXPR_DYN_CAST inline +#endif + namespace boost { // See the documentation for descriptions of how to choose between @@ -74,7 +80,7 @@ namespace boost // section 15.8 exercise 1, page 425. template <class Target, class Source> - inline Target polymorphic_cast(Source* x) + BOOST_CONVERSION_IMPL_CONSTEXPR_DYN_CAST Target polymorphic_cast(Source* x) { Target tmp = dynamic_cast<Target>(x); if ( tmp == 0 ) boost::throw_exception( std::bad_cast() ); @@ -93,7 +99,7 @@ namespace boost // Contributed by Dave Abrahams template <class Target, class Source> - inline Target polymorphic_downcast(Source* x) + BOOST_CONVERSION_IMPL_CONSTEXPR_DYN_CAST Target polymorphic_downcast(Source* x) { BOOST_ASSERT( dynamic_cast<Target>(x) == x ); // detect logic error return static_cast<Target>(x); @@ -109,7 +115,7 @@ namespace boost // Contributed by Julien Delacroix template <class Target, class Source> - inline typename std::enable_if< + BOOST_CONVERSION_IMPL_CONSTEXPR_DYN_CAST typename std::enable_if< std::is_reference<Target>::value, Target >::type polymorphic_downcast(Source& x) { @@ -121,4 +127,6 @@ namespace boost } // namespace boost +#undef BOOST_CONVERSION_IMPL_CONSTEXPR_DYN_CAST + #endif // BOOST_POLYMORPHIC_CAST_HPP diff --git a/contrib/restricted/boost/conversion/ya.make b/contrib/restricted/boost/conversion/ya.make index 4af6f0e13c5..a730cf89b84 100644 --- a/contrib/restricted/boost/conversion/ya.make +++ b/contrib/restricted/boost/conversion/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/conversion/archive/boost-1.88.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/conversion/archive/boost-1.89.0.tar.gz) PEERDIR( contrib/restricted/boost/assert |