diff options
author | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-08-06 17:28:06 +0300 |
---|---|---|
committer | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-08-06 17:28:06 +0300 |
commit | 9c33cade63606ea579200799466de2926504d86a (patch) | |
tree | bd5d595c044896ecb3990ad24f73720c1cc1a53c | |
parent | 781b376f87c922fb67085b9d2356a324f63ba6df (diff) | |
download | ydb-9c33cade63606ea579200799466de2926504d86a.tar.gz |
Reimport boost/ratio as a separate project
39 files changed, 37 insertions, 567 deletions
diff --git a/CMakeLists.darwin.txt b/CMakeLists.darwin.txt index b039fa13d4c..04e11306a49 100644 --- a/CMakeLists.darwin.txt +++ b/CMakeLists.darwin.txt @@ -391,6 +391,7 @@ add_subdirectory(contrib/libs/libevent/event_thread) add_subdirectory(contrib/restricted/boost/libs/thread) add_subdirectory(contrib/restricted/boost/atomic) add_subdirectory(contrib/restricted/boost/libs/chrono) +add_subdirectory(contrib/restricted/boost/ratio) add_subdirectory(contrib/restricted/uriparser) add_subdirectory(contrib/libs/cctz/tzdata) add_subdirectory(contrib/libs/cctz) diff --git a/CMakeLists.linux.txt b/CMakeLists.linux.txt index 2315fb59ffd..e7731356f81 100644 --- a/CMakeLists.linux.txt +++ b/CMakeLists.linux.txt @@ -394,6 +394,7 @@ add_subdirectory(contrib/libs/libevent/event_thread) add_subdirectory(contrib/restricted/boost/libs/thread) add_subdirectory(contrib/restricted/boost/atomic) add_subdirectory(contrib/restricted/boost/libs/chrono) +add_subdirectory(contrib/restricted/boost/ratio) add_subdirectory(contrib/restricted/uriparser) add_subdirectory(contrib/libs/cctz/tzdata) add_subdirectory(contrib/libs/cctz) diff --git a/contrib/restricted/boost/boost/ratio.hpp b/contrib/restricted/boost/boost/ratio.hpp deleted file mode 100644 index 096fe627d82..00000000000 --- a/contrib/restricted/boost/boost/ratio.hpp +++ /dev/null @@ -1,14 +0,0 @@ -// ratio.hpp ---------------------------------------------------------------// - -// Copyright 2010 Vicente J. Botet Escriba - -// Distributed under the Boost Software License, Version 1.0. -// See http://www.boost.org/LICENSE_1_0.txt - - -#ifndef BOOST_RATIO_HPP -#define BOOST_RATIO_HPP - -#include <boost/ratio/include.hpp> - -#endif // BOOST_RATIO_HPP diff --git a/contrib/restricted/boost/boost/ratio/include.hpp b/contrib/restricted/boost/boost/ratio/include.hpp deleted file mode 100644 index 2fc13a48897..00000000000 --- a/contrib/restricted/boost/boost/ratio/include.hpp +++ /dev/null @@ -1,16 +0,0 @@ -// include.hpp ---------------------------------------------------------------// - -// Copyright 2011 Vicente J. Botet Escriba - -// Distributed under the Boost Software License, Version 1.0. -// See http://www.boost.org/LICENSE_1_0.txt - -#ifndef BOOST_RATIO_INCLUDE_HPP -#define BOOST_RATIO_INCLUDE_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/ratio_io.hpp> -#ifdef BOOST_RATIO_EXTENSIONS -#include <boost/ratio/mpl/rational_constant.hpp> -#endif -#endif // BOOST_RATIO_INCLUDE_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/abs.hpp b/contrib/restricted/boost/boost/ratio/mpl/abs.hpp deleted file mode 100644 index 4d94fdc228f..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/abs.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// abs.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_ABS_HPP -#define BOOST_RATIO_MPL_ABS_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/ratio/detail/mpl/abs.hpp> - -namespace boost { -namespace mpl { - -template<> -struct abs_impl< rational_c_tag > -{ - template< typename R > struct apply - : ratio_abs<R> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_ABS_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/arithmetic.hpp b/contrib/restricted/boost/boost/ratio/mpl/arithmetic.hpp deleted file mode 100644 index 95e8215eae9..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/arithmetic.hpp +++ /dev/null @@ -1,22 +0,0 @@ -// arithmetic.hpp ---------------------------------------------------------------// - -// Copyright 2011 Vicente J. Botet Escriba - -// Distributed under the Boost Software License, Version 1.0. -// See http://www.boost.org/LICENSE_1_0.txt - - -#ifndef BOOST_RATIO_MPL_ARITHMETIC_HPP -#define BOOST_RATIO_MPL_ARITHMETIC_HPP - -#include <boost/ratio/mpl/plus.hpp> -#include <boost/ratio/mpl/minus.hpp> -#include <boost/ratio/mpl/times.hpp> -#include <boost/ratio/mpl/divides.hpp> -#include <boost/ratio/mpl/negate.hpp> -#include <boost/ratio/mpl/abs.hpp> -#include <boost/ratio/mpl/sign.hpp> -#include <boost/ratio/mpl/gcd.hpp> -#include <boost/ratio/mpl/lcm.hpp> - -#endif // BOOST_RATIO_MPL_ARITHMETIC_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/comparison.hpp b/contrib/restricted/boost/boost/ratio/mpl/comparison.hpp deleted file mode 100644 index 942bf494c30..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/comparison.hpp +++ /dev/null @@ -1,19 +0,0 @@ -// comparison.hpp ---------------------------------------------------------------// - -// Copyright 2011 Vicente J. Botet Escriba - -// Distributed under the Boost Software License, Version 1.0. -// See http://www.boost.org/LICENSE_1_0.txt - - -#ifndef BOOST_RATIO_MPL_COMPARISON_HPP -#define BOOST_RATIO_MPL_COMPARISON_HPP - -#include <boost/ratio/mpl/equal_to.hpp> -#include <boost/ratio/mpl/not_equal_to.hpp> -#include <boost/ratio/mpl/less.hpp> -#include <boost/ratio/mpl/less_equal.hpp> -#include <boost/ratio/mpl/greater.hpp> -#include <boost/ratio/mpl/greater_equal.hpp> - -#endif // BOOST_RATIO_MPL_COMPARISON_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/divides.hpp b/contrib/restricted/boost/boost/ratio/mpl/divides.hpp deleted file mode 100644 index 03186f7df12..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/divides.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// divides.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_DIVIDES_HPP -#define BOOST_RATIO_MPL_DIVIDES_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/divides.hpp> - -namespace boost { -namespace mpl { - -template<> -struct divides_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_divide<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_DIVIDES_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/equal_to.hpp b/contrib/restricted/boost/boost/ratio/mpl/equal_to.hpp deleted file mode 100644 index 63358d192ba..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/equal_to.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// equal_to.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_EQUAL_TO_HPP -#define BOOST_RATIO_MPL_EQUAL_TO_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/equal_to.hpp> - -namespace boost { -namespace mpl { - -template<> -struct equal_to_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_equal<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_EQUAL_TO_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/gcd.hpp b/contrib/restricted/boost/boost/ratio/mpl/gcd.hpp deleted file mode 100644 index 5d7ed721434..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/gcd.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// gcd.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_GCD_HPP -#define BOOST_RATIO_MPL_GCD_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/ratio/detail/mpl/gcd.hpp> - -namespace boost { -namespace mpl { - -template<> -struct gcd_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_gcd<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_GCD_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/greater.hpp b/contrib/restricted/boost/boost/ratio/mpl/greater.hpp deleted file mode 100644 index 73832167ac0..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/greater.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// greater.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_GREATER_HPP -#define BOOST_RATIO_MPL_GREATER_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/greater.hpp> - -namespace boost { -namespace mpl { - -template<> -struct greater_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_greater<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_GREATER_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/greater_equal.hpp b/contrib/restricted/boost/boost/ratio/mpl/greater_equal.hpp deleted file mode 100644 index 7fea293b47f..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/greater_equal.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// greater_equal.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_GREATER_EQUAL_HPP -#define BOOST_RATIO_MPL_GREATER_EQUAL_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/greater_equal.hpp> - -namespace boost { -namespace mpl { - -template<> -struct greater_equal_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_greater_equal<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_GREATER_EQUAL_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/lcm.hpp b/contrib/restricted/boost/boost/ratio/mpl/lcm.hpp deleted file mode 100644 index 5d1a5a98365..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/lcm.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// lcm.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_LCM_HPP -#define BOOST_RATIO_MPL_LCM_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/ratio/detail/mpl/lcm.hpp> - -namespace boost { -namespace mpl { - -template<> -struct lcm_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_lcm<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_LCM_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/less.hpp b/contrib/restricted/boost/boost/ratio/mpl/less.hpp deleted file mode 100644 index 3bb37c3e6ba..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/less.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// less.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_LESS_HPP -#define BOOST_RATIO_MPL_LESS_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/less.hpp> - -namespace boost { -namespace mpl { - -template<> -struct less_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_less<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_LESS_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/less_equal.hpp b/contrib/restricted/boost/boost/ratio/mpl/less_equal.hpp deleted file mode 100644 index 017ddc23b7e..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/less_equal.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// less_equal.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_LESS_EQUAL_HPP -#define BOOST_RATIO_MPL_LESS_EQUAL_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/less_equal.hpp> - -namespace boost { -namespace mpl { - -template<> -struct less_equal_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_less_equal<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_LESS_EQUAL_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/minus.hpp b/contrib/restricted/boost/boost/ratio/mpl/minus.hpp deleted file mode 100644 index ef2952fdf9c..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/minus.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// minus.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_MINUS_HPP -#define BOOST_RATIO_MPL_MINUS_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/minus.hpp> - -namespace boost { -namespace mpl { - -template<> -struct minus_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_subtract<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_MINUS_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/negate.hpp b/contrib/restricted/boost/boost/ratio/mpl/negate.hpp deleted file mode 100644 index dbc0b669f2a..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/negate.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// negate.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_NEGATE_HPP -#define BOOST_RATIO_MPL_NEGATE_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/negate.hpp> - -namespace boost { -namespace mpl { - -template<> -struct negate_impl< rational_c_tag > -{ - template< typename R > struct apply - : ratio_negate<R> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_NEGATE_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/not_equal_to.hpp b/contrib/restricted/boost/boost/ratio/mpl/not_equal_to.hpp deleted file mode 100644 index bfda6ddaa84..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/not_equal_to.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// not_equal_to.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP -#define BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/not_equal_to.hpp> - -namespace boost { -namespace mpl { - -template<> -struct not_equal_to_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_not_equal<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/numeric_cast.hpp b/contrib/restricted/boost/boost/ratio/mpl/numeric_cast.hpp deleted file mode 100644 index 3251e631dfb..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/numeric_cast.hpp +++ /dev/null @@ -1,31 +0,0 @@ -// numeric_cast.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_NUMERIC_CAST_HPP -#define BOOST_RATIO_MPL_NUMERIC_CAST_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/mpl/integral_c.hpp> -#include <boost/ratio/mpl/rational_c_tag.hpp> -#include <boost/mpl/numeric_cast.hpp> - -namespace boost { -namespace mpl { - -template<> struct numeric_cast< integral_c_tag,rational_c_tag > -{ - template< typename N > struct apply - : ratio< N::value, 1 > - { - }; -}; - -} -} - -#endif // BOOST_RATIO_MPL_NUMERIC_CAST_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/plus.hpp b/contrib/restricted/boost/boost/ratio/mpl/plus.hpp deleted file mode 100644 index a3d137d5c79..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/plus.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// plus.hpp -// -// (C) Copyright 2011Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_PLUS_HPP -#define BOOST_RATIO_MPL_PLUS_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/plus.hpp> - -namespace boost { -namespace mpl { - -template<> -struct plus_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_add<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_PLUS_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/rational_constant.hpp b/contrib/restricted/boost/boost/ratio/mpl/rational_constant.hpp deleted file mode 100644 index fde9a3d2759..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/rational_constant.hpp +++ /dev/null @@ -1,15 +0,0 @@ -// rational_constant.hpp ---------------------------------------------------------------// -// Copyright 2011 Vicente J. Botet Escriba -// Distributed under the Boost Software License, Version 1.0. -// See http://www.boost.org/LICENSE_1_0.txt - - -#ifndef BOOST_RATIO_MPL_RATIONAL_CONSTANT_HPP -#define BOOST_RATIO_MPL_RATIONAL_CONSTANT_HPP - -#include <boost/ratio/mpl/rational_c_tag.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/ratio/mpl/arithmetic.hpp> -#include <boost/ratio/mpl/comparison.hpp> - -#endif // BOOST_RATIO_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/sign.hpp b/contrib/restricted/boost/boost/ratio/mpl/sign.hpp deleted file mode 100644 index f8b73721e3c..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/sign.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// sign.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_SIGN_HPP -#define BOOST_RATIO_MPL_SIGN_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/ratio/detail/mpl/sign.hpp> - -namespace boost { -namespace mpl { - -template<> -struct sign_impl< rational_c_tag > -{ - template< typename R > struct apply - : ratio_sign<R> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_SIGN_HPP diff --git a/contrib/restricted/boost/boost/ratio/mpl/times.hpp b/contrib/restricted/boost/boost/ratio/mpl/times.hpp deleted file mode 100644 index a8e5f60787d..00000000000 --- a/contrib/restricted/boost/boost/ratio/mpl/times.hpp +++ /dev/null @@ -1,30 +0,0 @@ -// times.hpp -// -// (C) Copyright 2011 Vicente J. Botet Escriba -// Use, modification and distribution are 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). -// - -#ifndef BOOST_RATIO_MPL_TIMES_HPP -#define BOOST_RATIO_MPL_TIMES_HPP - -#include <boost/ratio/ratio.hpp> -#include <boost/ratio/mpl/numeric_cast.hpp> -#include <boost/mpl/times.hpp> - -namespace boost { -namespace mpl { - -template<> -struct times_impl< rational_c_tag,rational_c_tag > -{ - template< typename R1, typename R2 > struct apply - : ratio_multiply<R1, R2> - { - }; -}; -} -} - -#endif // BOOST_RATIO_MPL_TIMES_HPP diff --git a/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt index 66885bfd756..c41d89a0017 100644 --- a/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt +++ b/contrib/restricted/boost/libs/chrono/CMakeLists.darwin.txt @@ -33,6 +33,7 @@ target_compile_options(boost-libs-chrono PRIVATE target_link_libraries(boost-libs-chrono PUBLIC contrib-libs-cxxsupp contrib-restricted-boost + restricted-boost-ratio restricted-boost-system ) target_sources(boost-libs-chrono PRIVATE diff --git a/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt b/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt index 1004f03fef9..2c02092aa49 100644 --- a/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt +++ b/contrib/restricted/boost/libs/chrono/CMakeLists.linux.txt @@ -32,6 +32,7 @@ target_compile_options(boost-libs-chrono PRIVATE target_link_libraries(boost-libs-chrono PUBLIC contrib-libs-cxxsupp contrib-restricted-boost + restricted-boost-ratio restricted-boost-system ) target_sources(boost-libs-chrono PRIVATE diff --git a/contrib/restricted/boost/libs/graph/CMakeLists.txt b/contrib/restricted/boost/libs/graph/CMakeLists.txt index 0cefef1cf84..bff7dae152b 100644 --- a/contrib/restricted/boost/libs/graph/CMakeLists.txt +++ b/contrib/restricted/boost/libs/graph/CMakeLists.txt @@ -14,4 +14,5 @@ target_link_libraries(boost-libs-graph INTERFACE restricted-boost-atomic restricted-boost-exception boost-libs-filesystem + boost-libs-thread ) diff --git a/contrib/restricted/boost/ratio/CMakeLists.txt b/contrib/restricted/boost/ratio/CMakeLists.txt new file mode 100644 index 00000000000..be55f69ae37 --- /dev/null +++ b/contrib/restricted/boost/ratio/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-ratio INTERFACE) +target_include_directories(restricted-boost-ratio INTERFACE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/ratio/include +) +target_link_libraries(restricted-boost-ratio INTERFACE + contrib-libs-cxxsupp + yutil + restricted-boost-config + restricted-boost-core + restricted-boost-integer + restricted-boost-mpl + restricted-boost-rational + restricted-boost-static_assert + restricted-boost-type_traits +) diff --git a/contrib/restricted/boost/ratio/README.md b/contrib/restricted/boost/ratio/README.md new file mode 100644 index 00000000000..28aae8487cf --- /dev/null +++ b/contrib/restricted/boost/ratio/README.md @@ -0,0 +1,8 @@ +ratio +====== + +Compile time rational arithmetic. C++11. + +### License + +Distributed under the [Boost Software License, Version 1.0](http://boost.org/LICENSE_1_0.txt). diff --git a/contrib/restricted/boost/boost/ratio/config.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/config.hpp index 992a256d810..992a256d810 100644 --- a/contrib/restricted/boost/boost/ratio/config.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/config.hpp diff --git a/contrib/restricted/boost/boost/ratio/detail/mpl/abs.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/abs.hpp index 91545888a9d..91545888a9d 100644 --- a/contrib/restricted/boost/boost/ratio/detail/mpl/abs.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/abs.hpp diff --git a/contrib/restricted/boost/boost/ratio/detail/mpl/gcd.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/gcd.hpp index 30ba1db91cd..30ba1db91cd 100644 --- a/contrib/restricted/boost/boost/ratio/detail/mpl/gcd.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/gcd.hpp diff --git a/contrib/restricted/boost/boost/ratio/detail/mpl/lcm.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/lcm.hpp index 1792660f06a..1792660f06a 100644 --- a/contrib/restricted/boost/boost/ratio/detail/mpl/lcm.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/lcm.hpp diff --git a/contrib/restricted/boost/boost/ratio/detail/mpl/sign.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/sign.hpp index fa1c555348e..fa1c555348e 100644 --- a/contrib/restricted/boost/boost/ratio/detail/mpl/sign.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/detail/mpl/sign.hpp diff --git a/contrib/restricted/boost/boost/ratio/detail/overflow_helpers.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/detail/overflow_helpers.hpp index ffaa603a65a..ffaa603a65a 100644 --- a/contrib/restricted/boost/boost/ratio/detail/overflow_helpers.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/detail/overflow_helpers.hpp diff --git a/contrib/restricted/boost/boost/ratio/detail/ratio_io.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/detail/ratio_io.hpp index 636dbc22f84..636dbc22f84 100644 --- a/contrib/restricted/boost/boost/ratio/detail/ratio_io.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/detail/ratio_io.hpp diff --git a/contrib/restricted/boost/boost/ratio/mpl/rational_c_tag.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/mpl/rational_c_tag.hpp index 743766ffa0a..743766ffa0a 100644 --- a/contrib/restricted/boost/boost/ratio/mpl/rational_c_tag.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/mpl/rational_c_tag.hpp diff --git a/contrib/restricted/boost/boost/ratio/ratio.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/ratio.hpp index 824cbf01733..824cbf01733 100644 --- a/contrib/restricted/boost/boost/ratio/ratio.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/ratio.hpp diff --git a/contrib/restricted/boost/boost/ratio/ratio_fwd.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/ratio_fwd.hpp index cd9199f3939..cd9199f3939 100644 --- a/contrib/restricted/boost/boost/ratio/ratio_fwd.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/ratio_fwd.hpp diff --git a/contrib/restricted/boost/boost/ratio/ratio_io.hpp b/contrib/restricted/boost/ratio/include/boost/ratio/ratio_io.hpp index e39cbaffa54..e39cbaffa54 100644 --- a/contrib/restricted/boost/boost/ratio/ratio_io.hpp +++ b/contrib/restricted/boost/ratio/include/boost/ratio/ratio_io.hpp |