diff options
author | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-09-09 06:23:16 +0300 |
---|---|---|
committer | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-09-09 06:23:16 +0300 |
commit | 53b8926bdd46d449090379ac9c46bb4c257f0999 (patch) | |
tree | 69d7afa0d33dab07982bff4ed5881f00f22e5535 /contrib/restricted | |
parent | 4ec683e3f8d8404a356a84b481d4f719e0c10f48 (diff) | |
download | ydb-53b8926bdd46d449090379ac9c46bb4c257f0999.tar.gz |
Reimpost boost/dynamic_bitset as a separate project
Diffstat (limited to 'contrib/restricted')
9 files changed, 25 insertions, 46 deletions
diff --git a/contrib/restricted/boost/CMakeLists.txt b/contrib/restricted/boost/CMakeLists.txt index 1d562b09c4..19a20ef861 100644 --- a/contrib/restricted/boost/CMakeLists.txt +++ b/contrib/restricted/boost/CMakeLists.txt @@ -24,6 +24,7 @@ add_subdirectory(core) add_subdirectory(crc) add_subdirectory(date_time) add_subdirectory(detail) +add_subdirectory(dynamic_bitset) add_subdirectory(endian) add_subdirectory(exception) add_subdirectory(filesystem) @@ -109,6 +110,7 @@ target_link_libraries(contrib-restricted-boost INTERFACE restricted-boost-conversion restricted-boost-core restricted-boost-detail + restricted-boost-dynamic_bitset restricted-boost-endian restricted-boost-exception restricted-boost-foreach diff --git a/contrib/restricted/boost/boost/dynamic_bitset/serialization.hpp b/contrib/restricted/boost/boost/dynamic_bitset/serialization.hpp deleted file mode 100644 index 2b59d56b02..0000000000 --- a/contrib/restricted/boost/boost/dynamic_bitset/serialization.hpp +++ /dev/null @@ -1,46 +0,0 @@ -// ----------------------------------------------------------- -// -// Copyright (c) 2015 Seth Heeren -// -// 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_DYNAMIC_BITSET_SERIALIZATION_HPP -#define BOOST_DYNAMIC_BITSET_SERIALIZATION_HPP - -#include "boost/dynamic_bitset/dynamic_bitset.hpp" -#include <boost/serialization/vector.hpp> - -namespace boost { - - // implementation for optional zero-copy serialization support - template <typename Block, typename Allocator> - class dynamic_bitset<Block, Allocator>::serialize_impl - { - public: - template <typename Ar> - static void serialize(Ar& ar, dynamic_bitset<Block, Allocator>& bs, unsigned) { - ar & serialization::make_nvp("m_num_bits", bs.m_num_bits) - & serialization::make_nvp("m_bits", bs.m_bits); - } - }; - -} - -// ADL hook to Boost Serialization library -namespace boost { - namespace serialization { - - template <typename Ar, typename Block, typename Allocator> - void serialize(Ar& ar, dynamic_bitset<Block, Allocator>& bs, unsigned version) { - dynamic_bitset<Block, Allocator>::serialize_impl::serialize(ar, bs, version); - } - - } // namespace serialization -} // namespace boost - -#endif // include guard - diff --git a/contrib/restricted/boost/dynamic_bitset/CMakeLists.txt b/contrib/restricted/boost/dynamic_bitset/CMakeLists.txt new file mode 100644 index 0000000000..fb7d3ef5df --- /dev/null +++ b/contrib/restricted/boost/dynamic_bitset/CMakeLists.txt @@ -0,0 +1,23 @@ + +# 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-dynamic_bitset INTERFACE) +target_include_directories(restricted-boost-dynamic_bitset INTERFACE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/dynamic_bitset/include +) +target_link_libraries(restricted-boost-dynamic_bitset INTERFACE + contrib-libs-cxxsupp + yutil + restricted-boost-config + restricted-boost-core + restricted-boost-integer + restricted-boost-move + restricted-boost-static_assert + restricted-boost-throw_exception +) diff --git a/contrib/restricted/boost/boost/detail/dynamic_bitset.hpp b/contrib/restricted/boost/dynamic_bitset/include/boost/detail/dynamic_bitset.hpp index e0f675d5ec..e0f675d5ec 100644 --- a/contrib/restricted/boost/boost/detail/dynamic_bitset.hpp +++ b/contrib/restricted/boost/dynamic_bitset/include/boost/detail/dynamic_bitset.hpp diff --git a/contrib/restricted/boost/boost/dynamic_bitset.hpp b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset.hpp index 29e103862e..29e103862e 100644 --- a/contrib/restricted/boost/boost/dynamic_bitset.hpp +++ b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset.hpp diff --git a/contrib/restricted/boost/boost/dynamic_bitset/config.hpp b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset/config.hpp index 1e6d9f7e47..1e6d9f7e47 100644 --- a/contrib/restricted/boost/boost/dynamic_bitset/config.hpp +++ b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset/config.hpp diff --git a/contrib/restricted/boost/boost/dynamic_bitset/dynamic_bitset.hpp b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset/dynamic_bitset.hpp index 83fcb61a1e..83fcb61a1e 100644 --- a/contrib/restricted/boost/boost/dynamic_bitset/dynamic_bitset.hpp +++ b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset/dynamic_bitset.hpp diff --git a/contrib/restricted/boost/boost/dynamic_bitset_fwd.hpp b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset_fwd.hpp index 7bb6e89743..7bb6e89743 100644 --- a/contrib/restricted/boost/boost/dynamic_bitset_fwd.hpp +++ b/contrib/restricted/boost/dynamic_bitset/include/boost/dynamic_bitset_fwd.hpp diff --git a/contrib/restricted/boost/boost/pending/lowest_bit.hpp b/contrib/restricted/boost/dynamic_bitset/include/boost/pending/lowest_bit.hpp index 697f6d070f..697f6d070f 100644 --- a/contrib/restricted/boost/boost/pending/lowest_bit.hpp +++ b/contrib/restricted/boost/dynamic_bitset/include/boost/pending/lowest_bit.hpp |