diff options
author | bugaevskiy <[email protected]> | 2022-08-07 21:20:06 +0300 |
---|---|---|
committer | bugaevskiy <[email protected]> | 2022-08-07 21:20:06 +0300 |
commit | 00da69bd77782a0a897a0ace0e4085d35910bd2f (patch) | |
tree | 914c0b9a82497d4813247e6fb2ed4422e3f39674 | |
parent | 487a04911c0de87f90720cce0a9407083b460892 (diff) |
Reimport boost/numeric_conversion as a separate project
31 files changed, 35 insertions, 115 deletions
diff --git a/CMakeLists.darwin.txt b/CMakeLists.darwin.txt index 9186832ab8b..2ad1775ab86 100644 --- a/CMakeLists.darwin.txt +++ b/CMakeLists.darwin.txt @@ -383,6 +383,7 @@ add_subdirectory(contrib/restricted/boost/interval) add_subdirectory(contrib/restricted/boost/logic) add_subdirectory(contrib/restricted/boost/io) add_subdirectory(contrib/restricted/boost/mp11) +add_subdirectory(contrib/restricted/boost/numeric_conversion) add_subdirectory(contrib/restricted/boost/optional) add_subdirectory(contrib/restricted/boost/polygon) add_subdirectory(contrib/restricted/boost/qvm) diff --git a/CMakeLists.linux.txt b/CMakeLists.linux.txt index 6128ad1b371..a3b28aed8d5 100644 --- a/CMakeLists.linux.txt +++ b/CMakeLists.linux.txt @@ -386,6 +386,7 @@ add_subdirectory(contrib/restricted/boost/interval) add_subdirectory(contrib/restricted/boost/logic) add_subdirectory(contrib/restricted/boost/io) add_subdirectory(contrib/restricted/boost/mp11) +add_subdirectory(contrib/restricted/boost/numeric_conversion) add_subdirectory(contrib/restricted/boost/optional) add_subdirectory(contrib/restricted/boost/polygon) add_subdirectory(contrib/restricted/boost/qvm) diff --git a/contrib/restricted/boost/CMakeLists.txt b/contrib/restricted/boost/CMakeLists.txt index 89af20b0004..c688fd08910 100644 --- a/contrib/restricted/boost/CMakeLists.txt +++ b/contrib/restricted/boost/CMakeLists.txt @@ -33,6 +33,7 @@ target_link_libraries(contrib-restricted-boost INTERFACE restricted-boost-move restricted-boost-mp11 restricted-boost-mpl + restricted-boost-numeric_conversion restricted-boost-optional restricted-boost-polygon restricted-boost-predef diff --git a/contrib/restricted/boost/boost/numeric/conversion/int_float_mixture.hpp b/contrib/restricted/boost/boost/numeric/conversion/int_float_mixture.hpp deleted file mode 100644 index d6dd5ab7c26..00000000000 --- a/contrib/restricted/boost/boost/numeric/conversion/int_float_mixture.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004 -// Use, modification, and distribution is subject to 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) - -// See library home page at http://www.boost.org/libs/numeric/conversion -// -// Contact the author at: [email protected] -// -#ifndef BOOST_NUMERIC_CONVERSION_INT_FLOAT_MIXTURE_FLC_12NOV2002_HPP -#define BOOST_NUMERIC_CONVERSION_INT_FLOAT_MIXTURE_FLC_12NOV2002_HPP - -#include "boost/numeric/conversion/detail/int_float_mixture.hpp" - -namespace boost { namespace numeric -{ - -template<class T, class S> -struct int_float_mixture - : convdetail::get_int_float_mixture< BOOST_DEDUCED_TYPENAME remove_cv<T>::type - ,BOOST_DEDUCED_TYPENAME remove_cv<S>::type - >::type {} ; - -} } // namespace boost::numeric - -#endif -// -/////////////////////////////////////////////////////////////////////////////////////////////// - - diff --git a/contrib/restricted/boost/boost/numeric/conversion/is_subranged.hpp b/contrib/restricted/boost/boost/numeric/conversion/is_subranged.hpp deleted file mode 100644 index c5fa0dd1032..00000000000 --- a/contrib/restricted/boost/boost/numeric/conversion/is_subranged.hpp +++ /dev/null @@ -1,27 +0,0 @@ -// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004 -// Use, modification, and distribution is subject to 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) - -// See library home page at http://www.boost.org/libs/numeric/conversion -// -// Contact the author at: [email protected] -// -#ifndef BOOST_NUMERIC_CONVERSION_IS_SUBRANGED_FLC_12NOV2002_HPP -#define BOOST_NUMERIC_CONVERSION_IS_SUBRANGED_FLC_12NOV2002_HPP - -#include "boost/numeric/conversion/detail/is_subranged.hpp" - -namespace boost { namespace numeric { - -template<class T, class S> -struct is_subranged - : convdetail::get_is_subranged< BOOST_DEDUCED_TYPENAME remove_cv<T>::type - ,BOOST_DEDUCED_TYPENAME remove_cv<S>::type - >::type {} ; - -} } // namespace boost::numeric - -#endif - - diff --git a/contrib/restricted/boost/boost/numeric/conversion/sign_mixture.hpp b/contrib/restricted/boost/boost/numeric/conversion/sign_mixture.hpp deleted file mode 100644 index 12018141c3a..00000000000 --- a/contrib/restricted/boost/boost/numeric/conversion/sign_mixture.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004 -// Use, modification, and distribution is subject to 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) - -// See library home page at http://www.boost.org/libs/numeric/conversion -// -// Contact the author at: [email protected] -// -#ifndef BOOST_NUMERIC_CONVERSION_SIGN_MIXTURE_FLC_12NOV2002_HPP -#define BOOST_NUMERIC_CONVERSION_SIGN_MIXTURE_FLC_12NOV2002_HPP - -#include "boost/numeric/conversion/detail/sign_mixture.hpp" - -namespace boost { namespace numeric -{ - -template<class T, class S> -struct sign_mixture - : convdetail::get_sign_mixture< BOOST_DEDUCED_TYPENAME remove_cv<T>::type - ,BOOST_DEDUCED_TYPENAME remove_cv<S>::type - >::type {} ; - -} } // namespace boost::numeric - -#endif -// -/////////////////////////////////////////////////////////////////////////////////////////////// - - diff --git a/contrib/restricted/boost/boost/numeric/conversion/udt_builtin_mixture.hpp b/contrib/restricted/boost/boost/numeric/conversion/udt_builtin_mixture.hpp deleted file mode 100644 index a62e37d8e0a..00000000000 --- a/contrib/restricted/boost/boost/numeric/conversion/udt_builtin_mixture.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004 -// Use, modification, and distribution is subject to 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) - -// See library home page at http://www.boost.org/libs/numeric/conversion -// -// Contact the author at: [email protected] -// -#ifndef BOOST_NUMERIC_CONVERSION_UDT_BUILTIN_MIXTURE_FLC_12NOV2002_HPP -#define BOOST_NUMERIC_CONVERSION_UDT_BUILTIN_MIXTURE_FLC_12NOV2002_HPP - -#include "boost/numeric/conversion/detail/udt_builtin_mixture.hpp" - -namespace boost { namespace numeric -{ - -template<class T, class S> -struct udt_builtin_mixture - : convdetail::get_udt_builtin_mixture< BOOST_DEDUCED_TYPENAME remove_cv<T>::type - ,BOOST_DEDUCED_TYPENAME remove_cv<S>::type - >::type {} ; - -} } // namespace boost::numeric - -#endif - - diff --git a/contrib/restricted/boost/numeric_conversion/CMakeLists.txt b/contrib/restricted/boost/numeric_conversion/CMakeLists.txt new file mode 100644 index 00000000000..ffb9a1d127e --- /dev/null +++ b/contrib/restricted/boost/numeric_conversion/CMakeLists.txt @@ -0,0 +1,24 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(restricted-boost-numeric_conversion INTERFACE) +target_include_directories(restricted-boost-numeric_conversion INTERFACE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/numeric_conversion/include +) +target_link_libraries(restricted-boost-numeric_conversion INTERFACE + contrib-libs-cxxsupp + yutil + restricted-boost-config + restricted-boost-conversion + restricted-boost-core + restricted-boost-mpl + restricted-boost-preprocessor + restricted-boost-throw_exception + restricted-boost-type_traits +) diff --git a/contrib/restricted/boost/numeric_conversion/README.md b/contrib/restricted/boost/numeric_conversion/README.md new file mode 100644 index 00000000000..987f0ecf6bf --- /dev/null +++ b/contrib/restricted/boost/numeric_conversion/README.md @@ -0,0 +1,8 @@ +# Boost.NumericConversion + +The Boost Numeric Conversion library is a collection of tools to describe and perform conversions between values of different [numeric types][1]. + +The documentation for the library can be found [here][2] + +[1]: http://www.boost.org/doc/libs/release/libs/numeric/conversion/doc/html/boost_numericconversion/definitions.html#boost_numericconversion.definitions.numeric_types +[2]: http://www.boost.org/doc/libs/release/libs/numeric/conversion/doc/html/index.html#numeric_conversion.overview diff --git a/contrib/restricted/boost/boost/cast.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/cast.hpp index ab452bdf163..ab452bdf163 100644 --- a/contrib/restricted/boost/boost/cast.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/cast.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/bounds.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/bounds.hpp index e4c7c7deee8..e4c7c7deee8 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/bounds.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/bounds.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/cast.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/cast.hpp index 61286c13119..61286c13119 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/cast.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/cast.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/conversion_traits.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/conversion_traits.hpp index 23e0eb8c9ab..23e0eb8c9ab 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/conversion_traits.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/conversion_traits.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/converter.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/converter.hpp index 331caddea54..331caddea54 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/converter.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/converter.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/converter_policies.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/converter_policies.hpp index 57a255d451c..57a255d451c 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/converter_policies.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/converter_policies.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/bounds.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/bounds.hpp index 67342b8e570..67342b8e570 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/bounds.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/bounds.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/conversion_traits.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/conversion_traits.hpp index ed25349c671..ed25349c671 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/conversion_traits.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/conversion_traits.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/converter.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/converter.hpp index f7bf7b4436a..f7bf7b4436a 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/converter.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/converter.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/int_float_mixture.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/int_float_mixture.hpp index 464e52753fe..464e52753fe 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/int_float_mixture.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/int_float_mixture.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/is_subranged.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/is_subranged.hpp index b5e7fe8f1e8..b5e7fe8f1e8 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/is_subranged.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/is_subranged.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/meta.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/meta.hpp index 246a1b4702d..246a1b4702d 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/meta.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/meta.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/numeric_cast_traits.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp index 150490d935f..150490d935f 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/numeric_cast_traits.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/old_numeric_cast.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/old_numeric_cast.hpp index 9901ed2ae34..9901ed2ae34 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/old_numeric_cast.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/old_numeric_cast.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp index 01dc9321b3c..01dc9321b3c 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp index b358b9c41f5..b358b9c41f5 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/sign_mixture.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/sign_mixture.hpp index c7f9e42afe8..c7f9e42afe8 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/sign_mixture.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/sign_mixture.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/detail/udt_builtin_mixture.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp index 36dbc491b5e..36dbc491b5e 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/int_float_mixture_enum.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/int_float_mixture_enum.hpp index d0c2daacfc8..d0c2daacfc8 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/int_float_mixture_enum.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/int_float_mixture_enum.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/numeric_cast_traits.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/numeric_cast_traits.hpp index e24296bc7ec..e24296bc7ec 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/numeric_cast_traits.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/numeric_cast_traits.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/sign_mixture_enum.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/sign_mixture_enum.hpp index 1525f8d33ce..1525f8d33ce 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/sign_mixture_enum.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/sign_mixture_enum.hpp diff --git a/contrib/restricted/boost/boost/numeric/conversion/udt_builtin_mixture_enum.hpp b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/udt_builtin_mixture_enum.hpp index 2540e806308..2540e806308 100644 --- a/contrib/restricted/boost/boost/numeric/conversion/udt_builtin_mixture_enum.hpp +++ b/contrib/restricted/boost/numeric_conversion/include/boost/numeric/conversion/udt_builtin_mixture_enum.hpp |