diff options
author | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-09-05 10:49:34 +0300 |
---|---|---|
committer | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-09-05 10:49:34 +0300 |
commit | 79314458e846822ab76c0d57212b29388c685ca3 (patch) | |
tree | 9ba53f0c5cdecc64392db7035004c1ad49fd0c07 | |
parent | 286a310be3ab04813480a1bd291d618a7bf47d90 (diff) | |
download | ydb-79314458e846822ab76c0d57212b29388c685ca3.tar.gz |
Reimport boost/serialization as a separate project
237 files changed, 193 insertions, 7365 deletions
diff --git a/contrib/restricted/boost/CMakeLists.txt b/contrib/restricted/boost/CMakeLists.txt index 199aa254c46..8b4dee950f1 100644 --- a/contrib/restricted/boost/CMakeLists.txt +++ b/contrib/restricted/boost/CMakeLists.txt @@ -68,6 +68,7 @@ add_subdirectory(range) add_subdirectory(ratio) add_subdirectory(rational) add_subdirectory(regex) +add_subdirectory(serialization) add_subdirectory(smart_ptr) add_subdirectory(spirit) add_subdirectory(static_assert) diff --git a/contrib/restricted/boost/boost/archive/detail/polymorphic_iarchive_route.hpp b/contrib/restricted/boost/boost/archive/detail/polymorphic_iarchive_route.hpp deleted file mode 100644 index 105685ebbd8..00000000000 --- a/contrib/restricted/boost/boost/archive/detail/polymorphic_iarchive_route.hpp +++ /dev/null @@ -1,218 +0,0 @@ -#ifndef BOOST_ARCHIVE_DETAIL_POLYMORPHIC_IARCHIVE_ROUTE_HPP -#define BOOST_ARCHIVE_DETAIL_POLYMORPHIC_IARCHIVE_ROUTE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_iarchive_route.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <string> -#include <ostream> -#include <cstddef> - -#include <boost/config.hpp> -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif - -#include <boost/cstdint.hpp> -#include <boost/integer_traits.hpp> -#include <boost/archive/polymorphic_iarchive.hpp> -#include <boost/archive/detail/abi_prefix.hpp> // must be the last header - -namespace boost { -namespace serialization { - class extended_type_info; -} // namespace serialization -namespace archive { -namespace detail{ - -class basic_iserializer; -class basic_pointer_iserializer; - -#ifdef BOOST_MSVC -# pragma warning(push) -# pragma warning(disable : 4511 4512) -#endif - -template<class ArchiveImplementation> -class polymorphic_iarchive_route : - public polymorphic_iarchive, - // note: gcc dynamic cross cast fails if the the derivation below is - // not public. I think this is a mistake. - public /*protected*/ ArchiveImplementation -{ -private: - // these are used by the serialization library. - virtual void load_object( - void *t, - const basic_iserializer & bis - ){ - ArchiveImplementation::load_object(t, bis); - } - virtual const basic_pointer_iserializer * load_pointer( - void * & t, - const basic_pointer_iserializer * bpis_ptr, - const basic_pointer_iserializer * (*finder)( - const boost::serialization::extended_type_info & type - ) - ){ - return ArchiveImplementation::load_pointer(t, bpis_ptr, finder); - } - virtual void set_library_version(library_version_type archive_library_version){ - ArchiveImplementation::set_library_version(archive_library_version); - } - virtual library_version_type get_library_version() const{ - return ArchiveImplementation::get_library_version(); - } - virtual unsigned int get_flags() const { - return ArchiveImplementation::get_flags(); - } - virtual void delete_created_pointers(){ - ArchiveImplementation::delete_created_pointers(); - } - virtual void reset_object_address( - const void * new_address, - const void * old_address - ){ - ArchiveImplementation::reset_object_address(new_address, old_address); - } - virtual void load_binary(void * t, std::size_t size){ - ArchiveImplementation::load_binary(t, size); - } - // primitive types the only ones permitted by polymorphic archives - virtual void load(bool & t){ - ArchiveImplementation::load(t); - } - virtual void load(char & t){ - ArchiveImplementation::load(t); - } - virtual void load(signed char & t){ - ArchiveImplementation::load(t); - } - virtual void load(unsigned char & t){ - ArchiveImplementation::load(t); - } - #ifndef BOOST_NO_CWCHAR - #ifndef BOOST_NO_INTRINSIC_WCHAR_T - virtual void load(wchar_t & t){ - ArchiveImplementation::load(t); - } - #endif - #endif - virtual void load(short & t){ - ArchiveImplementation::load(t); - } - virtual void load(unsigned short & t){ - ArchiveImplementation::load(t); - } - virtual void load(int & t){ - ArchiveImplementation::load(t); - } - virtual void load(unsigned int & t){ - ArchiveImplementation::load(t); - } - virtual void load(long & t){ - ArchiveImplementation::load(t); - } - virtual void load(unsigned long & t){ - ArchiveImplementation::load(t); - } - #if defined(BOOST_HAS_LONG_LONG) - virtual void load(boost::long_long_type & t){ - ArchiveImplementation::load(t); - } - virtual void load(boost::ulong_long_type & t){ - ArchiveImplementation::load(t); - } - #elif defined(BOOST_HAS_MS_INT64) - virtual void load(__int64 & t){ - ArchiveImplementation::load(t); - } - virtual void load(unsigned __int64 & t){ - ArchiveImplementation::load(t); - } - #endif - virtual void load(float & t){ - ArchiveImplementation::load(t); - } - virtual void load(double & t){ - ArchiveImplementation::load(t); - } - virtual void load(std::string & t){ - ArchiveImplementation::load(t); - } - #ifndef BOOST_NO_STD_WSTRING - virtual void load(std::wstring & t){ - ArchiveImplementation::load(t); - } - #endif - // used for xml and other tagged formats default does nothing - virtual void load_start(const char * name){ - ArchiveImplementation::load_start(name); - } - virtual void load_end(const char * name){ - ArchiveImplementation::load_end(name); - } - virtual void register_basic_serializer(const basic_iserializer & bis){ - ArchiveImplementation::register_basic_serializer(bis); - } - virtual helper_collection & - get_helper_collection(){ - return ArchiveImplementation::get_helper_collection(); - } -public: - // this can't be inheriteded because they appear in mulitple - // parents - typedef mpl::bool_<true> is_loading; - typedef mpl::bool_<false> is_saving; - // the >> operator - template<class T> - polymorphic_iarchive & operator>>(T & t){ - return polymorphic_iarchive::operator>>(t); - } - // the & operator - template<class T> - polymorphic_iarchive & operator&(T & t){ - return polymorphic_iarchive::operator&(t); - } - // register type function - template<class T> - const basic_pointer_iserializer * - register_type(T * t = NULL){ - return ArchiveImplementation::register_type(t); - } - // all current archives take a stream as constructor argument - template <class _Elem, class _Tr> - polymorphic_iarchive_route( - std::basic_istream<_Elem, _Tr> & is, - unsigned int flags = 0 - ) : - ArchiveImplementation(is, flags) - {} - virtual ~polymorphic_iarchive_route(){}; -}; - -} // namespace detail -} // namespace archive -} // namespace boost - -#ifdef BOOST_MSVC -#pragma warning(pop) -#endif - -#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas - -#endif // BOOST_ARCHIVE_DETAIL_POLYMORPHIC_IARCHIVE_DISPATCH_HPP diff --git a/contrib/restricted/boost/boost/archive/detail/polymorphic_oarchive_route.hpp b/contrib/restricted/boost/boost/archive/detail/polymorphic_oarchive_route.hpp deleted file mode 100644 index b23fd6bf39d..00000000000 --- a/contrib/restricted/boost/boost/archive/detail/polymorphic_oarchive_route.hpp +++ /dev/null @@ -1,209 +0,0 @@ -#ifndef BOOST_ARCHIVE_DETAIL_POLYMORPHIC_OARCHIVE_ROUTE_HPP -#define BOOST_ARCHIVE_DETAIL_POLYMORPHIC_OARCHIVE_ROUTE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_oarchive_route.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <string> -#include <ostream> -#include <cstddef> // size_t - -#include <boost/config.hpp> -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif - -#include <boost/cstdint.hpp> -#include <boost/integer_traits.hpp> -#include <boost/archive/polymorphic_oarchive.hpp> -#include <boost/archive/detail/abi_prefix.hpp> // must be the last header - -namespace boost { -namespace serialization { - class extended_type_info; -} // namespace serialization -namespace archive { -namespace detail{ - -class basic_oserializer; -class basic_pointer_oserializer; - -#ifdef BOOST_MSVC -# pragma warning(push) -# pragma warning(disable : 4511 4512) -#endif - -template<class ArchiveImplementation> -class polymorphic_oarchive_route : - public polymorphic_oarchive, - // note: gcc dynamic cross cast fails if the the derivation below is - // not public. I think this is a mistake. - public /*protected*/ ArchiveImplementation -{ -private: - // these are used by the serialization library. - virtual void save_object( - const void *x, - const detail::basic_oserializer & bos - ){ - ArchiveImplementation::save_object(x, bos); - } - virtual void save_pointer( - const void * t, - const detail::basic_pointer_oserializer * bpos_ptr - ){ - ArchiveImplementation::save_pointer(t, bpos_ptr); - } - virtual void save_null_pointer(){ - ArchiveImplementation::save_null_pointer(); - } - // primitive types the only ones permitted by polymorphic archives - virtual void save(const bool t){ - ArchiveImplementation::save(t); - } - virtual void save(const char t){ - ArchiveImplementation::save(t); - } - virtual void save(const signed char t){ - ArchiveImplementation::save(t); - } - virtual void save(const unsigned char t){ - ArchiveImplementation::save(t); - } - #ifndef BOOST_NO_CWCHAR - #ifndef BOOST_NO_INTRINSIC_WCHAR_T - virtual void save(const wchar_t t){ - ArchiveImplementation::save(t); - } - #endif - #endif - virtual void save(const short t){ - ArchiveImplementation::save(t); - } - virtual void save(const unsigned short t){ - ArchiveImplementation::save(t); - } - virtual void save(const int t){ - ArchiveImplementation::save(t); - } - virtual void save(const unsigned int t){ - ArchiveImplementation::save(t); - } - virtual void save(const long t){ - ArchiveImplementation::save(t); - } - virtual void save(const unsigned long t){ - ArchiveImplementation::save(t); - } - #if defined(BOOST_HAS_LONG_LONG) - virtual void save(const boost::long_long_type t){ - ArchiveImplementation::save(t); - } - virtual void save(const boost::ulong_long_type t){ - ArchiveImplementation::save(t); - } - #elif defined(BOOST_HAS_MS_INT64) - virtual void save(const boost::int64_t t){ - ArchiveImplementation::save(t); - } - virtual void save(const boost::uint64_t t){ - ArchiveImplementation::save(t); - } - #endif - virtual void save(const float t){ - ArchiveImplementation::save(t); - } - virtual void save(const double t){ - ArchiveImplementation::save(t); - } - virtual void save(const std::string & t){ - ArchiveImplementation::save(t); - } - #ifndef BOOST_NO_STD_WSTRING - virtual void save(const std::wstring & t){ - ArchiveImplementation::save(t); - } - #endif - virtual library_version_type get_library_version() const{ - return ArchiveImplementation::get_library_version(); - } - virtual unsigned int get_flags() const { - return ArchiveImplementation::get_flags(); - } - virtual void save_binary(const void * t, std::size_t size){ - ArchiveImplementation::save_binary(t, size); - } - // used for xml and other tagged formats default does nothing - virtual void save_start(const char * name){ - ArchiveImplementation::save_start(name); - } - virtual void save_end(const char * name){ - ArchiveImplementation::save_end(name); - } - virtual void end_preamble(){ - ArchiveImplementation::end_preamble(); - } - virtual void register_basic_serializer(const detail::basic_oserializer & bos){ - ArchiveImplementation::register_basic_serializer(bos); - } - virtual helper_collection & - get_helper_collection(){ - return ArchiveImplementation::get_helper_collection(); - } -public: - // this can't be inheriteded because they appear in mulitple - // parents - typedef mpl::bool_<false> is_loading; - typedef mpl::bool_<true> is_saving; - // the << operator - template<class T> - polymorphic_oarchive & operator<<(T & t){ - return polymorphic_oarchive::operator<<(t); - } - // the & operator - template<class T> - polymorphic_oarchive & operator&(T & t){ - return polymorphic_oarchive::operator&(t); - } - // register type function - template<class T> - const basic_pointer_oserializer * - register_type(T * t = NULL){ - return ArchiveImplementation::register_type(t); - } - // all current archives take a stream as constructor argument - template <class _Elem, class _Tr> - polymorphic_oarchive_route( - std::basic_ostream<_Elem, _Tr> & os, - unsigned int flags = 0 - ) : - ArchiveImplementation(os, flags) - {} - virtual ~polymorphic_oarchive_route(){}; -}; - -} // namespace detail -} // namespace archive -} // namespace boost - -#ifdef BOOST_MSVC -#pragma warning(pop) -#endif - -#include <boost/archive/detail/abi_suffix.hpp> // pops abi_suffix.hpp pragmas - -#endif // BOOST_ARCHIVE_DETAIL_POLYMORPHIC_OARCHIVE_DISPATCH_HPP diff --git a/contrib/restricted/boost/boost/archive/iterators/base64_exception.hpp b/contrib/restricted/boost/boost/archive/iterators/base64_exception.hpp deleted file mode 100644 index 51d4e8bbf1b..00000000000 --- a/contrib/restricted/boost/boost/archive/iterators/base64_exception.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef BOOST_ARCHIVE_ITERATORS_BASE64_EXCEPTION_HPP -#define BOOST_ARCHIVE_ITERATORS_BASE64_EXCEPTION_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// base64_exception.hpp: - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifndef BOOST_NO_EXCEPTIONS -#include <exception> - -#include <boost/assert.hpp> - -namespace boost { -namespace archive { -namespace iterators { - -////////////////////////////////////////////////////////////////////// -// exceptions thrown by base64s -// -class base64_exception : public std::exception -{ -public: - typedef enum { - invalid_code, // attempt to encode a value > 6 bits - invalid_character, // decode a value not in base64 char set - other_exception - } exception_code; - exception_code code; - - base64_exception(exception_code c = other_exception) : code(c) - {} - - virtual const char *what( ) const noexcept - { - const char *msg = "unknown exception code"; - switch(code){ - case invalid_code: - msg = "attempt to encode a value > 6 bits"; - break; - case invalid_character: - msg = "attempt to decode a value not in base64 char set"; - break; - default: - BOOST_ASSERT(false); - break; - } - return msg; - } -}; - -} // namespace iterators -} // namespace archive -} // namespace boost - -#endif //BOOST_NO_EXCEPTIONS -#endif //BOOST_ARCHIVE_ITERATORS_ARCHIVE_EXCEPTION_HPP diff --git a/contrib/restricted/boost/boost/archive/iterators/dataflow.hpp b/contrib/restricted/boost/boost/archive/iterators/dataflow.hpp deleted file mode 100644 index 07733d5fd62..00000000000 --- a/contrib/restricted/boost/boost/archive/iterators/dataflow.hpp +++ /dev/null @@ -1,102 +0,0 @@ -#ifndef BOOST_ARCHIVE_ITERATORS_DATAFLOW_HPP -#define BOOST_ARCHIVE_ITERATORS_DATAFLOW_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// dataflow.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/assert.hpp> - -#include <boost/mpl/eval_if.hpp> -#include <boost/mpl/if.hpp> -#include <boost/mpl/apply.hpp> -#include <boost/mpl/plus.hpp> -#include <boost/mpl/int.hpp> - -#include <boost/type_traits/is_convertible.hpp> -#include <boost/type_traits/is_base_and_derived.hpp> -#include <boost/type_traits/is_pointer.hpp> -#include <boost/iterator/iterator_adaptor.hpp> -#include <boost/iterator/iterator_traits.hpp> -#include <boost/static_assert.hpp> - -namespace boost { -namespace archive { -namespace iterators { - -// poor man's tri-state -struct tri_state { - enum state_enum { - is_false = false, - is_true = true, - is_indeterminant - } m_state; - // convert to bool - operator bool (){ - BOOST_ASSERT(is_indeterminant != m_state); - return is_true == m_state ? true : false; - } - // assign from bool - tri_state & operator=(bool rhs) { - m_state = rhs ? is_true : is_false; - return *this; - } - tri_state(bool rhs) : - m_state(rhs ? is_true : is_false) - {} - tri_state(state_enum state) : - m_state(state) - {} - bool operator==(const tri_state & rhs) const { - return m_state == rhs.m_state; - } - bool operator!=(const tri_state & rhs) const { - return m_state != rhs.m_state; - } -}; - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// implement functions common to dataflow iterators -template<class Derived> -class dataflow { - bool m_eoi; -protected: - // test for iterator equality - tri_state equal(const Derived & rhs) const { - if(m_eoi && rhs.m_eoi) - return true; - if(m_eoi || rhs.m_eoi) - return false; - return tri_state(tri_state::is_indeterminant); - } - void eoi(bool tf){ - m_eoi = tf; - } - bool eoi() const { - return m_eoi; - } -public: - dataflow(bool tf) : - m_eoi(tf) - {} - dataflow() : // used for iterator end - m_eoi(true) - {} -}; - -} // namespace iterators -} // namespace archive -} // namespace boost - -#endif // BOOST_ARCHIVE_ITERATORS_DATAFLOW_HPP diff --git a/contrib/restricted/boost/boost/archive/iterators/xml_unescape_exception.hpp b/contrib/restricted/boost/boost/archive/iterators/xml_unescape_exception.hpp deleted file mode 100644 index 623dde24c5b..00000000000 --- a/contrib/restricted/boost/boost/archive/iterators/xml_unescape_exception.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP -#define BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// xml_unescape_exception.hpp: - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifndef BOOST_NO_EXCEPTIONS -#include <exception> - -#include <boost/assert.hpp> - -namespace boost { -namespace archive { -namespace iterators { - -////////////////////////////////////////////////////////////////////// -// exceptions thrown by xml_unescapes -// -class xml_unescape_exception : public std::exception -{ -public: - xml_unescape_exception() - {} - - virtual const char *what( ) const noexcept - { - return "xml contained un-recognized escape code"; - } -}; - -} // namespace iterators -} // namespace archive -} // namespace boost - -#endif //BOOST_NO_EXCEPTIONS -#endif //BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP diff --git a/contrib/restricted/boost/boost/archive/polymorphic_binary_iarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_binary_iarchive.hpp deleted file mode 100644 index 4a898a8ad16..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_binary_iarchive.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_BINARY_IARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_BINARY_IARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_binary_iarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/archive/binary_iarchive.hpp> -#include <boost/archive/detail/polymorphic_iarchive_route.hpp> - -#ifdef BOOST_MSVC -# pragma warning(push) -# pragma warning(disable : 4511 4512) -#endif - -namespace boost { -namespace archive { - -class polymorphic_binary_iarchive : - public detail::polymorphic_iarchive_route<binary_iarchive> -{ -public: - polymorphic_binary_iarchive(std::istream & is, unsigned int flags = 0) : - detail::polymorphic_iarchive_route<binary_iarchive>(is, flags) - {} - ~polymorphic_binary_iarchive(){} -}; - -} // namespace archive -} // namespace boost - -#ifdef BOOST_MSVC -#pragma warning(pop) -#endif - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_binary_iarchive -) - -#endif // BOOST_ARCHIVE_POLYMORPHIC_BINARY_IARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_binary_oarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_binary_oarchive.hpp deleted file mode 100644 index 931b243feb8..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_binary_oarchive.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_BINARY_OARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_BINARY_OARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_binary_oarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/archive/binary_oarchive.hpp> -#include <boost/archive/detail/polymorphic_oarchive_route.hpp> - -namespace boost { -namespace archive { - -typedef detail::polymorphic_oarchive_route< - binary_oarchive_impl< - binary_oarchive, - std::ostream::char_type, - std::ostream::traits_type - > - > polymorphic_binary_oarchive; - -} // namespace archive -} // namespace boost - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_binary_oarchive -) - -#endif // BOOST_ARCHIVE_POLYMORPHIC_BINARY_OARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_text_iarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_text_iarchive.hpp deleted file mode 100644 index 7bef2927865..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_text_iarchive.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_TEXT_IARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_TEXT_IARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_text_iarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/archive/text_iarchive.hpp> -#include <boost/archive/detail/polymorphic_iarchive_route.hpp> - -#ifdef BOOST_MSVC -# pragma warning(push) -# pragma warning(disable : 4511 4512) -#endif - -namespace boost { -namespace archive { - -class polymorphic_text_iarchive : - public detail::polymorphic_iarchive_route<text_iarchive> -{ -public: - polymorphic_text_iarchive(std::istream & is, unsigned int flags = 0) : - detail::polymorphic_iarchive_route<text_iarchive>(is, flags) - {} - ~polymorphic_text_iarchive(){} -}; - -} // namespace archive -} // namespace boost - -#ifdef BOOST_MSVC -#pragma warning(pop) -#endif - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_text_iarchive -) - -#endif // BOOST_ARCHIVE_POLYMORPHIC_TEXT_IARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_text_oarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_text_oarchive.hpp deleted file mode 100644 index 457aad9fd75..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_text_oarchive.hpp +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_TEXT_OARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_TEXT_OARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_text_oarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/archive/text_oarchive.hpp> -#include <boost/archive/detail/polymorphic_oarchive_route.hpp> - -namespace boost { -namespace archive { - -typedef detail::polymorphic_oarchive_route< - text_oarchive_impl<text_oarchive> -> polymorphic_text_oarchive; - -} // namespace archive -} // namespace boost - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_text_oarchive -) - -#endif // BOOST_ARCHIVE_POLYMORPHIC_TEXT_OARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_text_wiarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_text_wiarchive.hpp deleted file mode 100644 index 8466f05d6a6..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_text_wiarchive.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_TEXT_WIARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_TEXT_WIARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_text_wiarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_NO_STD_WSTREAMBUF -#error "wide char i/o not supported on this platform" -#else - -#include <boost/archive/text_wiarchive.hpp> -#include <boost/archive/detail/polymorphic_iarchive_route.hpp> - -#ifdef BOOST_MSVC -# pragma warning(push) -# pragma warning(disable : 4511 4512) -#endif - -namespace boost { -namespace archive { - -class polymorphic_text_wiarchive : - public detail::polymorphic_iarchive_route<text_wiarchive> -{ -public: - polymorphic_text_wiarchive(std::wistream & is, unsigned int flags = 0) : - detail::polymorphic_iarchive_route<text_wiarchive>(is, flags) - {} - ~polymorphic_text_wiarchive(){} -}; - -} // namespace archive -} // namespace boost - -#ifdef BOOST_MSVC -#pragma warning(pop) -#endif - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_text_wiarchive -) - -#endif // BOOST_NO_STD_WSTREAMBUF -#endif // BOOST_ARCHIVE_POLYMORPHIC_TEXT_WIARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_text_woarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_text_woarchive.hpp deleted file mode 100644 index 295625d1bcf..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_text_woarchive.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_TEXT_WOARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_TEXT_WOARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_text_oarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_NO_STD_WSTREAMBUF -#error "wide char i/o not supported on this platform" -#else - -#include <boost/archive/text_woarchive.hpp> -#include <boost/archive/detail/polymorphic_oarchive_route.hpp> - -namespace boost { -namespace archive { - -typedef detail::polymorphic_oarchive_route< - text_woarchive_impl<text_woarchive> -> polymorphic_text_woarchive; - -} // namespace archive -} // namespace boost - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_text_woarchive -) - -#endif // BOOST_NO_STD_WSTREAMBUF -#endif // BOOST_ARCHIVE_POLYMORPHIC_TEXT_WOARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_xml_iarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_xml_iarchive.hpp deleted file mode 100644 index 4dc3f894b38..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_xml_iarchive.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_XML_IARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_XML_IARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_xml_iarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/archive/xml_iarchive.hpp> -#include <boost/archive/detail/polymorphic_iarchive_route.hpp> - -#ifdef BOOST_MSVC -# pragma warning(push) -# pragma warning(disable : 4511 4512) -#endif - -namespace boost { -namespace archive { - -class polymorphic_xml_iarchive : - public detail::polymorphic_iarchive_route<xml_iarchive> -{ -public: - polymorphic_xml_iarchive(std::istream & is, unsigned int flags = 0) : - detail::polymorphic_iarchive_route<xml_iarchive>(is, flags) - {} - ~polymorphic_xml_iarchive(){} -}; - -} // namespace archive -} // namespace boost - -#ifdef BOOST_MSVC -#pragma warning(pop) -#endif - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_xml_iarchive -) - -#endif // BOOST_ARCHIVE_POLYMORPHIC_XML_IARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_xml_oarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_xml_oarchive.hpp deleted file mode 100644 index 514f9e530a8..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_xml_oarchive.hpp +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_XML_OARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_XML_OARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_xml_oarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/archive/xml_oarchive.hpp> -#include <boost/archive/detail/polymorphic_oarchive_route.hpp> - -namespace boost { -namespace archive { - -typedef detail::polymorphic_oarchive_route< - xml_oarchive_impl<xml_oarchive> -> polymorphic_xml_oarchive; - -} // namespace archive -} // namespace boost - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_xml_oarchive -) - -#endif // BOOST_ARCHIVE_POLYMORPHIC_XML_OARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_xml_wiarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_xml_wiarchive.hpp deleted file mode 100644 index d4ab731267f..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_xml_wiarchive.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_XML_WIARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_XML_WIARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_xml_wiarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_NO_STD_WSTREAMBUF -#error "wide char i/o not supported on this platform" -#else - -#include <boost/archive/xml_wiarchive.hpp> -#include <boost/archive/detail/polymorphic_iarchive_route.hpp> - -namespace boost { -namespace archive { - -class polymorphic_xml_wiarchive : - public detail::polymorphic_iarchive_route<xml_wiarchive> -{ -public: - polymorphic_xml_wiarchive(std::wistream & is, unsigned int flags = 0) : - detail::polymorphic_iarchive_route<xml_wiarchive>(is, flags) - {} - ~polymorphic_xml_wiarchive(){} -}; - -} // namespace archive -} // namespace boost - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_xml_wiarchive -) - -#endif // BOOST_NO_STD_WSTREAMBUF -#endif // BOOST_ARCHIVE_POLYMORPHIC_XML_WIARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/polymorphic_xml_woarchive.hpp b/contrib/restricted/boost/boost/archive/polymorphic_xml_woarchive.hpp deleted file mode 100644 index dd8963fbb14..00000000000 --- a/contrib/restricted/boost/boost/archive/polymorphic_xml_woarchive.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef BOOST_ARCHIVE_POLYMORPHIC_XML_WOARCHIVE_HPP -#define BOOST_ARCHIVE_POLYMORPHIC_XML_WOARCHIVE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// polymorphic_xml_oarchive.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_NO_STD_WSTREAMBUF -#error "wide char i/o not supported on this platform" -#else - -#include <boost/archive/xml_woarchive.hpp> -#include <boost/archive/detail/polymorphic_oarchive_route.hpp> - -namespace boost { -namespace archive { - -typedef detail::polymorphic_oarchive_route< - xml_woarchive_impl<xml_woarchive> -> polymorphic_xml_woarchive; - -} // namespace archive -} // namespace boost - -// required by export -BOOST_SERIALIZATION_REGISTER_ARCHIVE( - boost::archive::polymorphic_xml_woarchive -) - -#endif // BOOST_NO_STD_WSTREAMBUF -#endif // BOOST_ARCHIVE_POLYMORPHIC_XML_WOARCHIVE_HPP - diff --git a/contrib/restricted/boost/boost/archive/tmpdir.hpp b/contrib/restricted/boost/boost/archive/tmpdir.hpp deleted file mode 100644 index 400d23b9f68..00000000000 --- a/contrib/restricted/boost/boost/archive/tmpdir.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef BOOST_ARCHIVE_TMPDIR_HPP -#define BOOST_ARCHIVE_TMPDIR_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// tmpdir.hpp: - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <cstdlib> // getenv -#include <cstddef> // NULL -//#include <boost/assert.hpp> - -#include <boost/config.hpp> -#ifdef BOOST_NO_STDC_NAMESPACE -namespace std { - using ::getenv; -} -#endif - -namespace boost { -namespace archive { - -inline const char * tmpdir(){ - const char *dirname; - dirname = std::getenv("TMP"); - if(NULL == dirname) - dirname = std::getenv("TMPDIR"); - if(NULL == dirname) - dirname = std::getenv("TEMP"); - if(NULL == dirname){ - //BOOST_ASSERT(false); // no temp directory found - dirname = "."; - } - return dirname; -} - -} // archive -} // boost - -#endif // BOOST_ARCHIVE_TMPDIR_HPP diff --git a/contrib/restricted/boost/boost/serialization/archive_input_unordered_map.hpp b/contrib/restricted/boost/boost/serialization/archive_input_unordered_map.hpp deleted file mode 100644 index ccf806b1813..00000000000 --- a/contrib/restricted/boost/boost/serialization/archive_input_unordered_map.hpp +++ /dev/null @@ -1,85 +0,0 @@ -#ifndef BOOST_SERIALIZATION_ARCHIVE_INPUT_UNORDERED_MAP_HPP -#define BOOST_SERIALIZATION_ARCHIVE_INPUT_UNORDERED_MAP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization/unordered_map.hpp: -// serialization for stl unordered_map templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/serialization/utility.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { -namespace stl { - -// map input -template<class Archive, class Container> -struct archive_input_unordered_map -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - ar >> boost::serialization::make_nvp("item", t.reference()); - std::pair<typename Container::const_iterator, bool> result = - s.insert(boost::move(t.reference())); - // note: the following presumes that the map::value_type was NOT tracked - // in the archive. This is the usual case, but here there is no way - // to determine that. - if(result.second){ - ar.reset_object_address( - & (result.first->second), - & t.reference().second - ); - } - } -}; - -// multimap input -template<class Archive, class Container> -struct archive_input_unordered_multimap -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::const_iterator result = - s.insert(t.reference()); - // note: the following presumes that the map::value_type was NOT tracked - // in the archive. This is the usual case, but here there is no way - // to determine that. - ar.reset_object_address( - & result->second, - & t.reference() - ); - } -}; - -} // stl -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_ARCHIVE_INPUT_UNORDERED_MAP_HPP diff --git a/contrib/restricted/boost/boost/serialization/archive_input_unordered_set.hpp b/contrib/restricted/boost/boost/serialization/archive_input_unordered_set.hpp deleted file mode 100644 index 7f0003cc6a4..00000000000 --- a/contrib/restricted/boost/boost/serialization/archive_input_unordered_set.hpp +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef BOOST_SERIALIZATION_ARCHIVE_INPUT_UNORDERED_SET_HPP -#define BOOST_SERIALIZATION_ARCHIVE_INPUT_UNORDERED_SET_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// archive_input_unordered_set.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <utility> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -namespace stl { - -// unordered_set input -template<class Archive, class Container> -struct archive_input_unordered_set -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - // borland fails silently w/o full namespace - ar >> boost::serialization::make_nvp("item", t.reference()); - std::pair<typename Container::const_iterator, bool> result = - s.insert(boost::move(t.reference())); - if(result.second) - ar.reset_object_address(& (* result.first), & t.reference()); - } -}; - -// unordered_multiset input -template<class Archive, class Container> -struct archive_input_unordered_multiset -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::const_iterator result = - s.insert(boost::move(t.reference())); - ar.reset_object_address(& (* result), & t.reference()); - } -}; - -} // stl -} // serialization -} // boost - -#endif // BOOST_SERIALIZATION_ARCHIVE_INPUT_UNORDERED_SET_HPP diff --git a/contrib/restricted/boost/boost/serialization/binary_object.hpp b/contrib/restricted/boost/boost/serialization/binary_object.hpp deleted file mode 100644 index 5c9038e5a9f..00000000000 --- a/contrib/restricted/boost/boost/serialization/binary_object.hpp +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef BOOST_SERIALIZATION_BINARY_OBJECT_HPP -#define BOOST_SERIALIZATION_BINARY_OBJECT_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// nvp.hpp: interface for serialization system. - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/assert.hpp> - -#include <cstddef> // std::size_t -#include <boost/config.hpp> -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif - -#include <boost/preprocessor/stringize.hpp> -#include <boost/serialization/tracking.hpp> -#include <boost/serialization/level.hpp> -#include <boost/serialization/split_member.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/wrapper.hpp> - -namespace boost { -namespace serialization { - -struct binary_object : - public wrapper_traits<nvp<const binary_object> > -{ - void const * m_t; - std::size_t m_size; - template<class Archive> - void save(Archive & ar, const unsigned int /* file_version */) const { - ar.save_binary(m_t, m_size); - } - template<class Archive> - void load(Archive & ar, const unsigned int /* file_version */) const { - ar.load_binary(const_cast<void *>(m_t), m_size); - } - BOOST_SERIALIZATION_SPLIT_MEMBER() - binary_object & operator=(const binary_object & rhs) { - m_t = rhs.m_t; - m_size = rhs.m_size; - return *this; - } - binary_object(const void * const t, std::size_t size) : - m_t(t), - m_size(size) - {} - binary_object(const binary_object & rhs) : - m_t(rhs.m_t), - m_size(rhs.m_size) - {} -}; - -// just a little helper to support the convention that all serialization -// wrappers follow the naming convention make_xxxxx -inline -const binary_object -make_binary_object(const void * t, std::size_t size){ - return binary_object(t, size); -} - -} // namespace serialization -} // boost - -#endif // BOOST_SERIALIZATION_BINARY_OBJECT_HPP diff --git a/contrib/restricted/boost/boost/serialization/bitset.hpp b/contrib/restricted/boost/boost/serialization/bitset.hpp deleted file mode 100644 index 78f9bd74336..00000000000 --- a/contrib/restricted/boost/boost/serialization/bitset.hpp +++ /dev/null @@ -1,75 +0,0 @@ -/*! - * \file bitset.hpp - * \brief Provides Boost.Serialization support for std::bitset - * \author Brian Ravnsgaard Riis - * \author Kenneth Riddile - * \date 16.09.2004, updated 04.03.2009 - * \copyright 2004 Brian Ravnsgaard Riis - * \license Boost Software License 1.0 - */ -#ifndef BOOST_SERIALIZATION_BITSET_HPP -#define BOOST_SERIALIZATION_BITSET_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -#include <bitset> -#include <cstddef> // size_t - -#include <boost/config.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/string.hpp> -#include <boost/serialization/nvp.hpp> - -namespace boost{ -namespace serialization{ - -template <class Archive, std::size_t size> -inline void save( - Archive & ar, - std::bitset<size> const & t, - const unsigned int /* version */ -){ - const std::string bits = t.template to_string< - std::string::value_type, - std::string::traits_type, - std::string::allocator_type - >(); - ar << BOOST_SERIALIZATION_NVP( bits ); -} - -template <class Archive, std::size_t size> -inline void load( - Archive & ar, - std::bitset<size> & t, - const unsigned int /* version */ -){ - std::string bits; - ar >> BOOST_SERIALIZATION_NVP( bits ); - t = std::bitset<size>(bits); -} - -template <class Archive, std::size_t size> -inline void serialize( - Archive & ar, - std::bitset<size> & t, - const unsigned int version -){ - boost::serialization::split_free( ar, t, version ); -} - -// don't track bitsets since that would trigger tracking -// all over the program - which probably would be a surprise. -// also, tracking would be hard to implement since, we're -// serialization a representation of the data rather than -// the data itself. -template <std::size_t size> -struct tracking_level<std::bitset<size> > - : mpl::int_<track_never> {} ; - -} //serialization -} //boost - -#endif // BOOST_SERIALIZATION_BITSET_HPP diff --git a/contrib/restricted/boost/boost/serialization/boost_array.hpp b/contrib/restricted/boost/boost/serialization/boost_array.hpp deleted file mode 100644 index d564ff15de0..00000000000 --- a/contrib/restricted/boost/boost/serialization/boost_array.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef BOOST_SERIALIZATION_ARRAY_HPP -#define BOOST_SERIALIZATION_ARRAY_HPP - -// (C) Copyright 2005 Matthias Troyer and Dave Abrahams -// 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) - -//#include <iostream> - -#include <boost/config.hpp> // msvc 6.0 needs this for warning suppression - -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif - -#include <boost/serialization/nvp.hpp> -#include <boost/array.hpp> - -namespace boost { namespace serialization { -// implement serialization for boost::array -template <class Archive, class T, std::size_t N> -void serialize(Archive& ar, boost::array<T,N>& a, const unsigned int /* version */) -{ - ar & boost::serialization::make_nvp("elems", a.elems); -} - -} } // end namespace boost::serialization - - -#endif //BOOST_SERIALIZATION_ARRAY_HPP diff --git a/contrib/restricted/boost/boost/serialization/boost_unordered_map.hpp b/contrib/restricted/boost/boost/serialization/boost_unordered_map.hpp deleted file mode 100644 index 8913b31f9e6..00000000000 --- a/contrib/restricted/boost/boost/serialization/boost_unordered_map.hpp +++ /dev/null @@ -1,154 +0,0 @@ -#ifndef BOOST_SERIALIZATION_UNORDERED_MAP_HPP -#define BOOST_SERIALIZATION_UNORDERED_MAP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization/unordered_map.hpp: -// serialization for stl unordered_map templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> - -#include <boost/unordered_map.hpp> - -#include <boost/serialization/utility.hpp> -#include <boost/serialization/unordered_collections_save_imp.hpp> -#include <boost/serialization/unordered_collections_load_imp.hpp> -#include <boost/serialization/archive_input_unordered_map.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const boost::unordered_map<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - boost::unordered_map<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - boost::unordered_map<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - boost::unordered_map<Key, HashFcn, EqualKey, Allocator>, - boost::serialization::stl::archive_input_unordered_map< - Archive, - boost::unordered_map<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - boost::unordered_map<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// unordered_multimap -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const boost::unordered_multimap<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - boost::unordered_multimap<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - boost::unordered_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - boost::unordered_multimap<Key, HashFcn, EqualKey, Allocator>, - boost::serialization::stl::archive_input_unordered_multimap< - Archive, - boost::unordered_multimap<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - boost::unordered_multimap<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_UNORDERED_MAP_HPP diff --git a/contrib/restricted/boost/boost/serialization/boost_unordered_set.hpp b/contrib/restricted/boost/boost/serialization/boost_unordered_set.hpp deleted file mode 100644 index 307c7819cbd..00000000000 --- a/contrib/restricted/boost/boost/serialization/boost_unordered_set.hpp +++ /dev/null @@ -1,150 +0,0 @@ -#ifndef BOOST_SERIALIZATION_BOOST_UNORDERED_SET_HPP -#define BOOST_SERIALIZATION_BOOST_UNORDERED_SET_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// unordered_set.hpp: serialization for boost unordered_set templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> - -#include <boost/unordered_set.hpp> - -#include <boost/serialization/unordered_collections_save_imp.hpp> -#include <boost/serialization/unordered_collections_load_imp.hpp> -#include <boost/serialization/archive_input_unordered_set.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const boost::unordered_set<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - boost::unordered_set<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - boost::unordered_set<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - boost::unordered_set<Key, HashFcn, EqualKey, Allocator>, - boost::serialization::stl::archive_input_unordered_set< - Archive, - boost::unordered_set<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - boost::unordered_set<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// unordered_multiset -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator>, - boost::serialization::stl::archive_input_unordered_multiset< - Archive, - boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - boost::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_BOOST_UNORDERED_SET_HPP diff --git a/contrib/restricted/boost/boost/serialization/collection_traits.hpp b/contrib/restricted/boost/boost/serialization/collection_traits.hpp deleted file mode 100644 index 3ec9401eff0..00000000000 --- a/contrib/restricted/boost/boost/serialization/collection_traits.hpp +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef BOOST_SERIALIZATION_COLLECTION_TRAITS_HPP -#define BOOST_SERIALIZATION_COLLECTION_TRAITS_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// collection_traits.hpp: - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// This header assigns a level implemenation trait to a collection type -// for all primitives. It is needed so that archives which are meant to be -// portable don't write class information in the archive. Since, not all -// compiles recognize the same set of primitive types, the possibility -// exists for archives to be non-portable if class information for primitive -// types is included. This is addressed by the following macros. -#include <boost/config.hpp> -//#include <boost/mpl/integral_c.hpp> -#include <boost/mpl/integral_c_tag.hpp> - -#include <boost/cstdint.hpp> -#include <boost/integer_traits.hpp> -#include <climits> // ULONG_MAX -#include <boost/serialization/level.hpp> - -#define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(T, C) \ -template<> \ -struct implementation_level< C < T > > { \ - typedef mpl::integral_c_tag tag; \ - typedef mpl::int_<object_serializable> type; \ - BOOST_STATIC_CONSTANT(int, value = object_serializable); \ -}; \ -/**/ - -#if defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_INTRINSIC_WCHAR_T) - #define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_WCHAR(C) -#else - #define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_WCHAR(C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(wchar_t, C) \ - /**/ -#endif - -#if defined(BOOST_HAS_LONG_LONG) - #define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_INT64(C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(boost::long_long_type, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(boost::ulong_long_type, C) \ - /**/ -#else - #define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_INT64(C) -#endif - -#define BOOST_SERIALIZATION_COLLECTION_TRAITS(C) \ - namespace boost { namespace serialization { \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(bool, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(char, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(signed char, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(unsigned char, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(signed int, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(unsigned int, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(signed long, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(unsigned long, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(float, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(double, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(unsigned short, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(signed short, C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_INT64(C) \ - BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER_WCHAR(C) \ - } } \ - /**/ - -#endif // BOOST_SERIALIZATION_COLLECTION_TRAITS diff --git a/contrib/restricted/boost/boost/serialization/collections_load_imp.hpp b/contrib/restricted/boost/boost/serialization/collections_load_imp.hpp deleted file mode 100644 index e042c0c130d..00000000000 --- a/contrib/restricted/boost/boost/serialization/collections_load_imp.hpp +++ /dev/null @@ -1,106 +0,0 @@ -#ifndef BOOST_SERIALIZATION_COLLECTIONS_LOAD_IMP_HPP -#define BOOST_SERIALIZATION_COLLECTIONS_LOAD_IMP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -#if defined(_MSC_VER) && (_MSC_VER <= 1020) -# pragma warning (disable : 4786) // too long name, harmless warning -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// collections_load_imp.hpp: serialization for loading stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// helper function templates for serialization of collections - -#include <boost/assert.hpp> -#include <cstddef> // size_t -#include <boost/config.hpp> // msvc 6.0 needs this for warning suppression -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif -#include <boost/detail/workaround.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/access.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> -#include <boost/serialization/detail/is_default_constructible.hpp> -#include <boost/utility/enable_if.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost{ -namespace serialization { -namespace stl { - -////////////////////////////////////////////////////////////////////// -// implementation of serialization for STL containers -// - -template< - class Archive, - class T -> -typename boost::enable_if< - typename detail::is_default_constructible< - typename T::value_type - >, - void ->::type -collection_load_impl( - Archive & ar, - T & t, - collection_size_type count, - item_version_type /*item_version*/ -){ - t.resize(count); - typename T::iterator hint; - hint = t.begin(); - while(count-- > 0){ - ar >> boost::serialization::make_nvp("item", *hint++); - } -} - -template< - class Archive, - class T -> -typename boost::disable_if< - typename detail::is_default_constructible< - typename T::value_type - >, - void ->::type -collection_load_impl( - Archive & ar, - T & t, - collection_size_type count, - item_version_type item_version -){ - t.clear(); - while(count-- > 0){ - detail::stack_construct<Archive, typename T::value_type> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - t.push_back(boost::move(u.reference())); - ar.reset_object_address(& t.back() , & u.reference()); - } -} - -} // namespace stl -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_COLLECTIONS_LOAD_IMP_HPP diff --git a/contrib/restricted/boost/boost/serialization/collections_save_imp.hpp b/contrib/restricted/boost/boost/serialization/collections_save_imp.hpp deleted file mode 100644 index 5ada155e241..00000000000 --- a/contrib/restricted/boost/boost/serialization/collections_save_imp.hpp +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef BOOST_SERIALIZATION_COLLECTIONS_SAVE_IMP_HPP -#define BOOST_SERIALIZATION_COLLECTIONS_SAVE_IMP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// collections_save_imp.hpp: serialization for stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// helper function templates for serialization of collections - -#include <boost/config.hpp> -#include <boost/core/addressof.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/serialization.hpp> -#include <boost/serialization/version.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -namespace boost{ -namespace serialization { -namespace stl { - -////////////////////////////////////////////////////////////////////// -// implementation of serialization for STL containers -// - -template<class Archive, class Container> -inline void save_collection( - Archive & ar, - const Container &s, - collection_size_type count) -{ - ar << BOOST_SERIALIZATION_NVP(count); - // record number of elements - const item_version_type item_version( - version<typename Container::value_type>::value - ); - #if 0 - boost::archive::library_version_type library_version( - ar.get_library_version() - ); - if(boost::archive::library_version_type(3) < library_version){ - ar << BOOST_SERIALIZATION_NVP(item_version); - } - #else - ar << BOOST_SERIALIZATION_NVP(item_version); - #endif - - typename Container::const_iterator it = s.begin(); - while(count-- > 0){ - // note borland emits a no-op without the explicit namespace - boost::serialization::save_construct_data_adl( - ar, - boost::addressof(*it), - item_version - ); - ar << boost::serialization::make_nvp("item", *it++); - } -} - -template<class Archive, class Container> -inline void save_collection(Archive & ar, const Container &s) -{ - // record number of elements - collection_size_type count(s.size()); - save_collection(ar, s, count); -} - -} // namespace stl -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_COLLECTIONS_SAVE_IMP_HPP diff --git a/contrib/restricted/boost/boost/serialization/complex.hpp b/contrib/restricted/boost/boost/serialization/complex.hpp deleted file mode 100644 index b4ef44cf973..00000000000 --- a/contrib/restricted/boost/boost/serialization/complex.hpp +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef BOOST_SERIALIZATION_COMPLEX_HPP -#define BOOST_SERIALIZATION_COMPLEX_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization/utility.hpp: -// serialization for stl utility templates - -// (C) Copyright 2007 Matthias Troyer . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <complex> -#include <boost/config.hpp> - -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/is_bitwise_serializable.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template<class Archive, class T> -inline void serialize( - Archive & ar, - std::complex< T > & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -template<class Archive, class T> -inline void save( - Archive & ar, - std::complex< T > const & t, - const unsigned int /* file_version */ -){ - const T re = t.real(); - const T im = t.imag(); - ar << boost::serialization::make_nvp("real", re); - ar << boost::serialization::make_nvp("imag", im); -} - -template<class Archive, class T> -inline void load( - Archive & ar, - std::complex< T >& t, - const unsigned int /* file_version */ -){ - T re; - T im; - ar >> boost::serialization::make_nvp("real", re); - ar >> boost::serialization::make_nvp("imag", im); - t = std::complex< T >(re,im); -} - -// specialization of serialization traits for complex -template <class T> -struct is_bitwise_serializable<std::complex< T > > - : public is_bitwise_serializable< T > {}; - -template <class T> -struct implementation_level<std::complex< T > > - : mpl::int_<object_serializable> {} ; - -// treat complex just like builtin arithmetic types for tracking -template <class T> -struct tracking_level<std::complex< T > > - : mpl::int_<track_never> {} ; - -} // serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_COMPLEX_HPP diff --git a/contrib/restricted/boost/boost/serialization/deque.hpp b/contrib/restricted/boost/boost/serialization/deque.hpp deleted file mode 100644 index bba81364ce2..00000000000 --- a/contrib/restricted/boost/boost/serialization/deque.hpp +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef BOOST_SERIALIZATION_DEQUE_HPP -#define BOOST_SERIALIZATION_DEQUE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// deque.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <deque> - -#include <boost/config.hpp> - -#include <boost/archive/basic_archive.hpp> - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/collections_load_imp.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const std::deque<U, Allocator> &t, - const unsigned int /* file_version */ -){ - boost::serialization::stl::save_collection< - Archive, std::deque<U, Allocator> - >(ar, t); -} - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - std::deque<U, Allocator> &t, - const unsigned int /* file_version */ -){ - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - stl::collection_load_impl(ar, t, count, item_version); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class U, class Allocator> -inline void serialize( - Archive & ar, - std::deque<U, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(std::deque) - -#endif // BOOST_SERIALIZATION_DEQUE_HPP diff --git a/contrib/restricted/boost/boost/serialization/detail/is_default_constructible.hpp b/contrib/restricted/boost/boost/serialization/detail/is_default_constructible.hpp deleted file mode 100644 index 4d20b13bf3e..00000000000 --- a/contrib/restricted/boost/boost/serialization/detail/is_default_constructible.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP -#define BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// is_default_constructible.hpp: serialization for loading stl collections -// -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> - -#if ! defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) - #include <type_traits> - namespace boost{ - namespace serialization { - namespace detail { - - template<typename T> - struct is_default_constructible : public std::is_default_constructible<T> {}; - - } // detail - } // serializaition - } // boost -#else - // we don't have standard library support for is_default_constructible - // so we fake it by using boost::has_trivial_construtor. But this is not - // actually correct because it's possible that a default constructor - // to be non trivial. So when using this, make sure you're not using your - // own definition of of T() but are using the actual default one! - #include <boost/type_traits/has_trivial_constructor.hpp> - namespace boost{ - namespace serialization { - namespace detail { - - template<typename T> - struct is_default_constructible : public boost::has_trivial_constructor<T> {}; - - } // detail - } // serializaition - } // boost - -#endif - - -#endif // BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP diff --git a/contrib/restricted/boost/boost/serialization/detail/shared_count_132.hpp b/contrib/restricted/boost/boost/serialization/detail/shared_count_132.hpp deleted file mode 100644 index fca9d119cd8..00000000000 --- a/contrib/restricted/boost/boost/serialization/detail/shared_count_132.hpp +++ /dev/null @@ -1,551 +0,0 @@ -#ifndef BOOST_DETAIL_SHARED_COUNT_132_HPP_INCLUDED -#define BOOST_DETAIL_SHARED_COUNT_132_HPP_INCLUDED - -// MS compatible compilers support #pragma once - -#if defined(_MSC_VER) -# pragma once -#endif - -// -// detail/shared_count.hpp -// -// Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd. -// -// 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) -// - -#include <boost/config.hpp> - -#if defined(BOOST_SP_USE_STD_ALLOCATOR) && defined(BOOST_SP_USE_QUICK_ALLOCATOR) -# error BOOST_SP_USE_STD_ALLOCATOR and BOOST_SP_USE_QUICK_ALLOCATOR are incompatible. -#endif - -#include <boost/checked_delete.hpp> -#include <boost/serialization/throw_exception.hpp> -#include <boost/detail/lightweight_mutex.hpp> - -#if defined(BOOST_SP_USE_QUICK_ALLOCATOR) -#include <boost/detail/quick_allocator.hpp> -#endif - -#include <memory> // std::auto_ptr, std::allocator -#include <functional> // std::less -#include <exception> // std::exception -#include <new> // std::bad_alloc -#include <typeinfo> // std::type_info in get_deleter -#include <cstddef> // std::size_t - -#include <boost/config.hpp> // msvc 6.0 needs this for warning suppression -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif - -namespace boost_132 { - -// Debug hooks - -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - -void sp_scalar_constructor_hook(void * px, std::size_t size, void * pn); -void sp_array_constructor_hook(void * px); -void sp_scalar_destructor_hook(void * px, std::size_t size, void * pn); -void sp_array_destructor_hook(void * px); - -#endif - - -// The standard library that comes with Borland C++ 5.5.1 -// defines std::exception and its members as having C calling -// convention (-pc). When the definition of bad_weak_ptr -// is compiled with -ps, the compiler issues an error. -// Hence, the temporary #pragma option -pc below. The version -// check is deliberately conservative. - -class bad_weak_ptr: public std::exception -{ -public: - - virtual char const * what() const noexcept - { - return "boost::bad_weak_ptr"; - } -}; - -namespace detail{ - -class sp_counted_base -{ -//private: - - typedef boost::detail::lightweight_mutex mutex_type; - -public: - - sp_counted_base(): use_count_(1), weak_count_(1) - { - } - - virtual ~sp_counted_base() // nothrow - { - } - - // dispose() is called when use_count_ drops to zero, to release - // the resources managed by *this. - - virtual void dispose() = 0; // nothrow - - // destruct() is called when weak_count_ drops to zero. - - virtual void destruct() // nothrow - { - delete this; - } - - virtual void * get_deleter(std::type_info const & ti) = 0; - - void add_ref_copy() - { -#if defined(BOOST_HAS_THREADS) - mutex_type::scoped_lock lock(mtx_); -#endif - ++use_count_; - } - - void add_ref_lock() - { -#if defined(BOOST_HAS_THREADS) - mutex_type::scoped_lock lock(mtx_); -#endif - if(use_count_ == 0) boost::serialization::throw_exception(bad_weak_ptr()); - ++use_count_; - } - - void release() // nothrow - { - { -#if defined(BOOST_HAS_THREADS) - mutex_type::scoped_lock lock(mtx_); -#endif - long new_use_count = --use_count_; - - if(new_use_count != 0) return; - } - - dispose(); - weak_release(); - } - - void weak_add_ref() // nothrow - { -#if defined(BOOST_HAS_THREADS) - mutex_type::scoped_lock lock(mtx_); -#endif - ++weak_count_; - } - - void weak_release() // nothrow - { - long new_weak_count; - - { -#if defined(BOOST_HAS_THREADS) - mutex_type::scoped_lock lock(mtx_); -#endif - new_weak_count = --weak_count_; - } - - if(new_weak_count == 0) - { - destruct(); - } - } - - long use_count() const // nothrow - { -#if defined(BOOST_HAS_THREADS) - mutex_type::scoped_lock lock(mtx_); -#endif - return use_count_; - } - -//private: -public: - sp_counted_base(sp_counted_base const &); - sp_counted_base & operator= (sp_counted_base const &); - - long use_count_; // #shared - long weak_count_; // #weak + (#shared != 0) - -#if defined(BOOST_HAS_THREADS) || defined(BOOST_LWM_WIN32) - mutable mutex_type mtx_; -#endif -}; - -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - -template<class T> void cbi_call_constructor_hook(sp_counted_base * pn, T * px, boost::checked_deleter< T > const &) -{ - boost::sp_scalar_constructor_hook(px, sizeof(T), pn); -} - -template<class T> void cbi_call_constructor_hook(sp_counted_base *, T * px, boost::checked_array_deleter< T > const &) -{ - boost::sp_array_constructor_hook(px); -} - -template<class P, class D> void cbi_call_constructor_hook(sp_counted_base *, P const &, D const &, long) -{ -} - -template<class T> void cbi_call_destructor_hook(sp_counted_base * pn, T * px, boost::checked_deleter< T > const &) -{ - boost::sp_scalar_destructor_hook(px, sizeof(T), pn); -} - -template<class T> void cbi_call_destructor_hook(sp_counted_base *, T * px, boost::checked_array_deleter< T > const &) -{ - boost::sp_array_destructor_hook(px); -} - -template<class P, class D> void cbi_call_destructor_hook(sp_counted_base *, P const &, D const &, long) -{ -} - -#endif - -// -// Borland's Codeguard trips up over the -Vx- option here: -// -#ifdef __CODEGUARD__ -# pragma option push -Vx- -#endif - -template<class P, class D> class sp_counted_base_impl: public sp_counted_base -{ -//private: -public: - P ptr; // copy constructor must not throw - D del; // copy constructor must not throw - - sp_counted_base_impl(sp_counted_base_impl const &); - sp_counted_base_impl & operator= (sp_counted_base_impl const &); - - typedef sp_counted_base_impl<P, D> this_type; - -public: - - // pre: initial_use_count <= initial_weak_count, d(p) must not throw - - sp_counted_base_impl(P p, D d): ptr(p), del(d) - { -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - detail::cbi_call_constructor_hook(this, p, d, 0); -#endif - } - - virtual void dispose() // nothrow - { -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - detail::cbi_call_destructor_hook(this, ptr, del, 0); -#endif - del(ptr); - } - - virtual void * get_deleter(std::type_info const & ti) - { - return ti == typeid(D)? &del: 0; - } - -#if defined(BOOST_SP_USE_STD_ALLOCATOR) - - void * operator new(std::size_t) - { - return std::allocator<this_type>().allocate(1, static_cast<this_type *>(0)); - } - - void operator delete(void * p) - { - std::allocator<this_type>().deallocate(static_cast<this_type *>(p), 1); - } - -#endif - -#if defined(BOOST_SP_USE_QUICK_ALLOCATOR) - - void * operator new(std::size_t) - { - return boost::detail::quick_allocator<this_type>::alloc(); - } - - void operator delete(void * p) - { - boost::detail::quick_allocator<this_type>::dealloc(p); - } - -#endif -}; - -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - -int const shared_count_id = 0x2C35F101; -int const weak_count_id = 0x298C38A4; - -#endif - -class weak_count; - -class shared_count -{ -//private: -public: - sp_counted_base * pi_; - -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - int id_; -#endif - - friend class weak_count; - -public: - - shared_count(): pi_(0) // nothrow -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif - { - } - - template<class P, class D> shared_count(P p, D d): pi_(0) -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif - { -#ifndef BOOST_NO_EXCEPTIONS - - try - { - pi_ = new sp_counted_base_impl<P, D>(p, d); - } - catch(...) - { - d(p); // delete p - throw; - } - -#else - - pi_ = new sp_counted_base_impl<P, D>(p, d); - - if(pi_ == 0) - { - d(p); // delete p - boost::serialization::throw_exception(std::bad_alloc()); - } - -#endif - } - -#ifndef BOOST_NO_AUTO_PTR - - // auto_ptr<Y> is special cased to provide the strong guarantee - - template<class Y> - explicit shared_count(std::auto_ptr<Y> & r): pi_( - new sp_counted_base_impl< - Y *, - boost::checked_deleter<Y> - >(r.get(), boost::checked_deleter<Y>())) -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif - { - r.release(); - } - -#endif - - ~shared_count() // nothrow - { - if(pi_ != 0) pi_->release(); -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - id_ = 0; -#endif - } - - shared_count(shared_count const & r): pi_(r.pi_) // nothrow -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif - { - if(pi_ != 0) pi_->add_ref_copy(); - } - - explicit shared_count(weak_count const & r); // throws bad_weak_ptr when r.use_count() == 0 - - shared_count & operator= (shared_count const & r) // nothrow - { - sp_counted_base * tmp = r.pi_; - - if(tmp != pi_) - { - if(tmp != 0) tmp->add_ref_copy(); - if(pi_ != 0) pi_->release(); - pi_ = tmp; - } - - return *this; - } - - void swap(shared_count & r) // nothrow - { - sp_counted_base * tmp = r.pi_; - r.pi_ = pi_; - pi_ = tmp; - } - - long use_count() const // nothrow - { - return pi_ != 0? pi_->use_count(): 0; - } - - bool unique() const // nothrow - { - return use_count() == 1; - } - - friend inline bool operator==(shared_count const & a, shared_count const & b) - { - return a.pi_ == b.pi_; - } - - friend inline bool operator<(shared_count const & a, shared_count const & b) - { - return std::less<sp_counted_base *>()(a.pi_, b.pi_); - } - - void * get_deleter(std::type_info const & ti) const - { - return pi_? pi_->get_deleter(ti): 0; - } -}; - -#ifdef __CODEGUARD__ -# pragma option pop -#endif - - -class weak_count -{ -private: - - sp_counted_base * pi_; - -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - int id_; -#endif - - friend class shared_count; - -public: - - weak_count(): pi_(0) // nothrow -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(weak_count_id) -#endif - { - } - - weak_count(shared_count const & r): pi_(r.pi_) // nothrow -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif - { - if(pi_ != 0) pi_->weak_add_ref(); - } - - weak_count(weak_count const & r): pi_(r.pi_) // nothrow -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif - { - if(pi_ != 0) pi_->weak_add_ref(); - } - - ~weak_count() // nothrow - { - if(pi_ != 0) pi_->weak_release(); -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - id_ = 0; -#endif - } - - weak_count & operator= (shared_count const & r) // nothrow - { - sp_counted_base * tmp = r.pi_; - if(tmp != 0) tmp->weak_add_ref(); - if(pi_ != 0) pi_->weak_release(); - pi_ = tmp; - - return *this; - } - - weak_count & operator= (weak_count const & r) // nothrow - { - sp_counted_base * tmp = r.pi_; - if(tmp != 0) tmp->weak_add_ref(); - if(pi_ != 0) pi_->weak_release(); - pi_ = tmp; - - return *this; - } - - void swap(weak_count & r) // nothrow - { - sp_counted_base * tmp = r.pi_; - r.pi_ = pi_; - pi_ = tmp; - } - - long use_count() const // nothrow - { - return pi_ != 0? pi_->use_count(): 0; - } - - friend inline bool operator==(weak_count const & a, weak_count const & b) - { - return a.pi_ == b.pi_; - } - - friend inline bool operator<(weak_count const & a, weak_count const & b) - { - return std::less<sp_counted_base *>()(a.pi_, b.pi_); - } -}; - -inline shared_count::shared_count(weak_count const & r): pi_(r.pi_) -#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) - , id_(shared_count_id) -#endif -{ - if(pi_ != 0) - { - pi_->add_ref_lock(); - } - else - { - boost::serialization::throw_exception(bad_weak_ptr()); - } -} - -} // namespace detail - -} // namespace boost - -BOOST_SERIALIZATION_ASSUME_ABSTRACT(boost_132::detail::sp_counted_base) - -#endif // #ifndef BOOST_DETAIL_SHARED_COUNT_HPP_INCLUDED diff --git a/contrib/restricted/boost/boost/serialization/detail/shared_ptr_132.hpp b/contrib/restricted/boost/boost/serialization/detail/shared_ptr_132.hpp deleted file mode 100644 index ee98b7b9449..00000000000 --- a/contrib/restricted/boost/boost/serialization/detail/shared_ptr_132.hpp +++ /dev/null @@ -1,443 +0,0 @@ -#ifndef BOOST_SHARED_PTR_132_HPP_INCLUDED -#define BOOST_SHARED_PTR_132_HPP_INCLUDED - -// -// shared_ptr.hpp -// -// (C) Copyright Greg Colvin and Beman Dawes 1998, 1999. -// Copyright (c) 2001, 2002, 2003 Peter Dimov -// -// 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) -// -// See http://www.boost.org/libs/smart_ptr/shared_ptr.htm for documentation. -// - -#include <boost/config.hpp> // for broken compiler workarounds - -#if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) -#include <boost/serialization/detail/shared_ptr_nmt_132.hpp> -#else - -#include <boost/assert.hpp> -#include <boost/checked_delete.hpp> -#include <boost/serialization/throw_exception.hpp> -#include <boost/detail/workaround.hpp> - -#include <boost/serialization/access.hpp> -#include <boost/serialization/detail/shared_count_132.hpp> - -#include <memory> // for std::auto_ptr -#include <algorithm> // for std::swap -#include <functional> // for std::less -#include <typeinfo> // for std::bad_cast -#include <iosfwd> // for std::basic_ostream - -#ifdef BOOST_MSVC // moved here to work around VC++ compiler crash -# pragma warning(push) -# pragma warning(disable:4284) // odd return type for operator-> -#endif - -namespace boost_132 { - -template<class T> class weak_ptr; -template<class T> class enable_shared_from_this; - -namespace detail -{ - -struct static_cast_tag {}; -struct const_cast_tag {}; -struct dynamic_cast_tag {}; -struct polymorphic_cast_tag {}; - -template<class T> struct shared_ptr_traits -{ - typedef T & reference; -}; - -template<> struct shared_ptr_traits<void> -{ - typedef void reference; -}; - -#if !defined(BOOST_NO_CV_VOID_SPECIALIZATIONS) - -template<> struct shared_ptr_traits<void const> -{ - typedef void reference; -}; - -template<> struct shared_ptr_traits<void volatile> -{ - typedef void reference; -}; - -template<> struct shared_ptr_traits<void const volatile> -{ - typedef void reference; -}; - -#endif - -// enable_shared_from_this support - -template<class T, class Y> void sp_enable_shared_from_this( shared_count const & pn, enable_shared_from_this< T > const * pe, Y const * px ) -{ - if(pe != 0) pe->_internal_weak_this._internal_assign(const_cast<Y*>(px), pn); -} - -inline void sp_enable_shared_from_this( shared_count const & /*pn*/, ... ) -{ -} - -} // namespace detail - - -// -// shared_ptr -// -// An enhanced relative of scoped_ptr with reference counted copy semantics. -// The object pointed to is deleted when the last shared_ptr pointing to it -// is destroyed or reset. -// - -template<class T> class shared_ptr -{ -private: - // Borland 5.5.1 specific workaround - typedef shared_ptr< T > this_type; - -public: - - typedef T element_type; - typedef T value_type; - typedef T * pointer; - typedef typename detail::shared_ptr_traits< T >::reference reference; - - shared_ptr(): px(0), pn() // never throws in 1.30+ - { - } - - template<class Y> - explicit shared_ptr(Y * p): px(p), pn(p, boost::checked_deleter<Y>()) // Y must be complete - { - detail::sp_enable_shared_from_this( pn, p, p ); - } - - // - // Requirements: D's copy constructor must not throw - // - // shared_ptr will release p by calling d(p) - // - - template<class Y, class D> shared_ptr(Y * p, D d): px(p), pn(p, d) - { - detail::sp_enable_shared_from_this( pn, p, p ); - } - -// generated copy constructor, assignment, destructor are fine... - -// except that Borland C++ has a bug, and g++ with -Wsynth warns -#if defined(__GNUC__) - shared_ptr & operator=(shared_ptr const & r) // never throws - { - px = r.px; - pn = r.pn; // shared_count::op= doesn't throw - return *this; - } -#endif - - template<class Y> - explicit shared_ptr(weak_ptr<Y> const & r): pn(r.pn) // may throw - { - // it is now safe to copy r.px, as pn(r.pn) did not throw - px = r.px; - } - - template<class Y> - shared_ptr(shared_ptr<Y> const & r): px(r.px), pn(r.pn) // never throws - { - } - - template<class Y> - shared_ptr(shared_ptr<Y> const & r, detail::static_cast_tag): px(static_cast<element_type *>(r.px)), pn(r.pn) - { - } - - template<class Y> - shared_ptr(shared_ptr<Y> const & r, detail::const_cast_tag): px(const_cast<element_type *>(r.px)), pn(r.pn) - { - } - - template<class Y> - shared_ptr(shared_ptr<Y> const & r, detail::dynamic_cast_tag): px(dynamic_cast<element_type *>(r.px)), pn(r.pn) - { - if(px == 0) // need to allocate new counter -- the cast failed - { - pn = detail::shared_count(); - } - } - - template<class Y> - shared_ptr(shared_ptr<Y> const & r, detail::polymorphic_cast_tag): px(dynamic_cast<element_type *>(r.px)), pn(r.pn) - { - if(px == 0) - { - boost::serialization::throw_exception(std::bad_cast()); - } - } - -#ifndef BOOST_NO_AUTO_PTR - - template<class Y> - explicit shared_ptr(std::auto_ptr<Y> & r): px(r.get()), pn() - { - Y * tmp = r.get(); - pn = detail::shared_count(r); - detail::sp_enable_shared_from_this( pn, tmp, tmp ); - } - -#endif - -#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200) - - template<class Y> - shared_ptr & operator=(shared_ptr<Y> const & r) // never throws - { - px = r.px; - pn = r.pn; // shared_count::op= doesn't throw - return *this; - } - -#endif - -#ifndef BOOST_NO_AUTO_PTR - - template<class Y> - shared_ptr & operator=(std::auto_ptr<Y> & r) - { - this_type(r).swap(*this); - return *this; - } - -#endif - - void reset() // never throws in 1.30+ - { - this_type().swap(*this); - } - - template<class Y> void reset(Y * p) // Y must be complete - { - BOOST_ASSERT(p == 0 || p != px); // catch self-reset errors - this_type(p).swap(*this); - } - - template<class Y, class D> void reset(Y * p, D d) - { - this_type(p, d).swap(*this); - } - - reference operator* () const // never throws - { - BOOST_ASSERT(px != 0); - return *px; - } - - T * operator-> () const // never throws - { - BOOST_ASSERT(px != 0); - return px; - } - - T * get() const // never throws - { - return px; - } - - // implicit conversion to "bool" - -#if defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x530) - - operator bool () const - { - return px != 0; - } - -#elif defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003)) - typedef T * (this_type::*unspecified_bool_type)() const; - - operator unspecified_bool_type() const // never throws - { - return px == 0? 0: &this_type::get; - } - -#else - - typedef T * this_type::*unspecified_bool_type; - - operator unspecified_bool_type() const // never throws - { - return px == 0? 0: &this_type::px; - } - -#endif - - // operator! is redundant, but some compilers need it - - bool operator! () const // never throws - { - return px == 0; - } - - bool unique() const // never throws - { - return pn.unique(); - } - - long use_count() const // never throws - { - return pn.use_count(); - } - - void swap(shared_ptr< T > & other) // never throws - { - std::swap(px, other.px); - pn.swap(other.pn); - } - - template<class Y> bool _internal_less(shared_ptr<Y> const & rhs) const - { - return pn < rhs.pn; - } - - void * _internal_get_deleter(std::type_info const & ti) const - { - return pn.get_deleter(ti); - } - -// Tasteless as this may seem, making all members public allows member templates -// to work in the absence of member template friends. (Matthew Langston) - -#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS - -private: - - template<class Y> friend class shared_ptr; - template<class Y> friend class weak_ptr; - - -#endif -public: // for serialization - T * px; // contained pointer - detail::shared_count pn; // reference counter - -}; // shared_ptr - -template<class T, class U> inline bool operator==(shared_ptr< T > const & a, shared_ptr<U> const & b) -{ - return a.get() == b.get(); -} - -template<class T, class U> inline bool operator!=(shared_ptr< T > const & a, shared_ptr<U> const & b) -{ - return a.get() != b.get(); -} - -template<class T, class U> inline bool operator<(shared_ptr< T > const & a, shared_ptr<U> const & b) -{ - return a._internal_less(b); -} - -template<class T> inline void swap(shared_ptr< T > & a, shared_ptr< T > & b) -{ - a.swap(b); -} - -template<class T, class U> shared_ptr< T > static_pointer_cast(shared_ptr<U> const & r) -{ - return shared_ptr< T >(r, detail::static_cast_tag()); -} - -template<class T, class U> shared_ptr< T > const_pointer_cast(shared_ptr<U> const & r) -{ - return shared_ptr< T >(r, detail::const_cast_tag()); -} - -template<class T, class U> shared_ptr< T > dynamic_pointer_cast(shared_ptr<U> const & r) -{ - return shared_ptr< T >(r, detail::dynamic_cast_tag()); -} - -// shared_*_cast names are deprecated. Use *_pointer_cast instead. - -template<class T, class U> shared_ptr< T > shared_static_cast(shared_ptr<U> const & r) -{ - return shared_ptr< T >(r, detail::static_cast_tag()); -} - -template<class T, class U> shared_ptr< T > shared_dynamic_cast(shared_ptr<U> const & r) -{ - return shared_ptr< T >(r, detail::dynamic_cast_tag()); -} - -template<class T, class U> shared_ptr< T > shared_polymorphic_cast(shared_ptr<U> const & r) -{ - return shared_ptr< T >(r, detail::polymorphic_cast_tag()); -} - -template<class T, class U> shared_ptr< T > shared_polymorphic_downcast(shared_ptr<U> const & r) -{ - BOOST_ASSERT(dynamic_cast<T *>(r.get()) == r.get()); - return shared_static_cast< T >(r); -} - -// get_pointer() enables boost::mem_fn to recognize shared_ptr - -template<class T> inline T * get_pointer(shared_ptr< T > const & p) -{ - return p.get(); -} - -// operator<< - - -template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, shared_ptr<Y> const & p) -{ - os << p.get(); - return os; -} - -// get_deleter (experimental) - -#if defined(__EDG_VERSION__) && (__EDG_VERSION__ <= 238) - -// g++ 2.9x doesn't allow static_cast<X const *>(void *) -// apparently EDG 2.38 also doesn't accept it - -template<class D, class T> D * get_deleter(shared_ptr< T > const & p) -{ - void const * q = p._internal_get_deleter(typeid(D)); - return const_cast<D *>(static_cast<D const *>(q)); -} - -#else - -template<class D, class T> D * get_deleter(shared_ptr< T > const & p) -{ - return static_cast<D *>(p._internal_get_deleter(typeid(D))); -} - -#endif - -} // namespace boost - -#ifdef BOOST_MSVC -# pragma warning(pop) -#endif - -#endif // #if defined(BOOST_NO_MEMBER_TEMPLATES) && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) - -#endif // #ifndef BOOST_SHARED_PTR_132_HPP_INCLUDED diff --git a/contrib/restricted/boost/boost/serialization/detail/shared_ptr_nmt_132.hpp b/contrib/restricted/boost/boost/serialization/detail/shared_ptr_nmt_132.hpp deleted file mode 100644 index 490e7ddd3d0..00000000000 --- a/contrib/restricted/boost/boost/serialization/detail/shared_ptr_nmt_132.hpp +++ /dev/null @@ -1,182 +0,0 @@ -#ifndef BOOST_DETAIL_SHARED_PTR_NMT_132_HPP_INCLUDED -#define BOOST_DETAIL_SHARED_PTR_NMT_132_HPP_INCLUDED - -// -// detail/shared_ptr_nmt.hpp - shared_ptr.hpp without member templates -// -// (C) Copyright Greg Colvin and Beman Dawes 1998, 1999. -// Copyright (c) 2001, 2002 Peter Dimov -// -// 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) -// -// See http://www.boost.org/libs/smart_ptr/shared_ptr.htm for documentation. -// - -#include <boost/assert.hpp> -#include <boost/checked_delete.hpp> -#include <boost/serialization/throw_exception.hpp> -#include <boost/detail/atomic_count.hpp> - -#ifndef BOOST_NO_AUTO_PTR -# include <memory> // for std::auto_ptr -#endif - -#include <algorithm> // for std::swap -#include <functional> // for std::less -#include <new> // for std::bad_alloc - -namespace boost -{ - -template<class T> class shared_ptr -{ -private: - - typedef detail::atomic_count count_type; - -public: - - typedef T element_type; - typedef T value_type; - - explicit shared_ptr(T * p = 0): px(p) - { -#ifndef BOOST_NO_EXCEPTIONS - - try // prevent leak if new throws - { - pn = new count_type(1); - } - catch(...) - { - boost::checked_delete(p); - throw; - } - -#else - - pn = new count_type(1); - - if(pn == 0) - { - boost::checked_delete(p); - boost::serialization::throw_exception(std::bad_alloc()); - } - -#endif - } - - ~shared_ptr() - { - if(--*pn == 0) - { - boost::checked_delete(px); - delete pn; - } - } - - shared_ptr(shared_ptr const & r): px(r.px) // never throws - { - pn = r.pn; - ++*pn; - } - - shared_ptr & operator=(shared_ptr const & r) - { - shared_ptr(r).swap(*this); - return *this; - } - -#ifndef BOOST_NO_AUTO_PTR - - explicit shared_ptr(std::auto_ptr< T > & r) - { - pn = new count_type(1); // may throw - px = r.release(); // fix: moved here to stop leak if new throws - } - - shared_ptr & operator=(std::auto_ptr< T > & r) - { - shared_ptr(r).swap(*this); - return *this; - } - -#endif - - void reset(T * p = 0) - { - BOOST_ASSERT(p == 0 || p != px); - shared_ptr(p).swap(*this); - } - - T & operator*() const // never throws - { - BOOST_ASSERT(px != 0); - return *px; - } - - T * operator->() const // never throws - { - BOOST_ASSERT(px != 0); - return px; - } - - T * get() const // never throws - { - return px; - } - - long use_count() const // never throws - { - return *pn; - } - - bool unique() const // never throws - { - return *pn == 1; - } - - void swap(shared_ptr< T > & other) // never throws - { - std::swap(px, other.px); - std::swap(pn, other.pn); - } - -private: - - T * px; // contained pointer - count_type * pn; // ptr to reference counter -}; - -template<class T, class U> inline bool operator==(shared_ptr< T > const & a, shared_ptr<U> const & b) -{ - return a.get() == b.get(); -} - -template<class T, class U> inline bool operator!=(shared_ptr< T > const & a, shared_ptr<U> const & b) -{ - return a.get() != b.get(); -} - -template<class T> inline bool operator<(shared_ptr< T > const & a, shared_ptr< T > const & b) -{ - return std::less<T*>()(a.get(), b.get()); -} - -template<class T> void swap(shared_ptr< T > & a, shared_ptr< T > & b) -{ - a.swap(b); -} - -// get_pointer() enables boost::mem_fn to recognize shared_ptr - -template<class T> inline T * get_pointer(shared_ptr< T > const & p) -{ - return p.get(); -} - -} // namespace boost - -#endif // #ifndef BOOST_DETAIL_SHARED_PTR_NMT_132_HPP_INCLUDED diff --git a/contrib/restricted/boost/boost/serialization/detail/stack_constructor.hpp b/contrib/restricted/boost/boost/serialization/detail/stack_constructor.hpp deleted file mode 100644 index ae14832c6db..00000000000 --- a/contrib/restricted/boost/boost/serialization/detail/stack_constructor.hpp +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef BOOST_SERIALIZATION_DETAIL_STACK_CONSTRUCTOR_HPP -#define BOOST_SERIALIZATION_DETAIL_STACK_CONSTRUCTOR_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// stack_constructor.hpp: serialization for loading stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/aligned_storage.hpp> -#include <boost/serialization/serialization.hpp> - -namespace boost{ -namespace serialization { -namespace detail { - -// reserve space on stack for an object of type T without actually -// construction such an object -template<typename T > -struct stack_allocate -{ - T * address() { - return static_cast<T*>(storage_.address()); - } - T & reference() { - return * address(); - } -private: - typedef typename boost::aligned_storage< - sizeof(T), - boost::alignment_of<T>::value - > type; - type storage_; -}; - -// construct element on the stack -template<class Archive, class T> -struct stack_construct : public stack_allocate<T> -{ - stack_construct(Archive & ar, const unsigned int version){ - // note borland emits a no-op without the explicit namespace - boost::serialization::load_construct_data_adl( - ar, - this->address(), - version - ); - } - ~stack_construct(){ - this->address()->~T(); // undo load_construct_data above - } -}; - -} // detail -} // serializaition -} // boost - -#endif // BOOST_SERIALIZATION_DETAIL_STACH_CONSTRUCTOR_HPP diff --git a/contrib/restricted/boost/boost/serialization/ephemeral.hpp b/contrib/restricted/boost/boost/serialization/ephemeral.hpp deleted file mode 100644 index 3a422c30a35..00000000000 --- a/contrib/restricted/boost/boost/serialization/ephemeral.hpp +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef BOOST_SERIALIZATION_EPHEMERAL_HPP -#define BOOST_SERIALIZATION_EPHEMERAL_HPP - -// MS compatible compilers support -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// ephemeral_object.hpp: interface for serialization system. - -// (C) Copyright 2007 Matthias Troyer. -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <utility> - -#include <boost/config.hpp> -#include <boost/detail/workaround.hpp> - -#include <boost/mpl/integral_c.hpp> -#include <boost/mpl/integral_c_tag.hpp> - -#include <boost/serialization/level.hpp> -#include <boost/serialization/tracking.hpp> -#include <boost/serialization/split_member.hpp> -#include <boost/serialization/base_object.hpp> -#include <boost/serialization/traits.hpp> -#include <boost/serialization/wrapper.hpp> - -namespace boost { -namespace serialization { - -template<class T> -struct ephemeral_object : - public wrapper_traits<ephemeral_object<T> > -{ - explicit ephemeral_object(T& t) : - val(t) - {} - - T & value() const { - return val; - } - - const T & const_value() const { - return val; - } - - template<class Archive> - void serialize(Archive &ar, const unsigned int) const - { - ar & val; - } - -private: - T & val; -}; - -template<class T> -inline -const ephemeral_object<T> ephemeral(const char * name, T & t){ - return ephemeral_object<T>(name, t); -} - -} // seralization -} // boost - -#endif // BOOST_SERIALIZATION_EPHEMERAL_HPP diff --git a/contrib/restricted/boost/boost/serialization/export.hpp b/contrib/restricted/boost/boost/serialization/export.hpp deleted file mode 100644 index 9eef440df42..00000000000 --- a/contrib/restricted/boost/boost/serialization/export.hpp +++ /dev/null @@ -1,225 +0,0 @@ -#ifndef BOOST_SERIALIZATION_EXPORT_HPP -#define BOOST_SERIALIZATION_EXPORT_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// export.hpp: set traits of classes to be serialized - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// (C) Copyright 2006 David Abrahams - http://www.boost.org. -// implementation of class export functionality. This is an alternative to -// "forward declaration" method to provoke instantiation of derived classes -// that are to be serialized through pointers. - -#include <utility> -#include <cstddef> // NULL - -#include <boost/config.hpp> -#include <boost/static_assert.hpp> -#include <boost/preprocessor/stringize.hpp> -#include <boost/type_traits/is_polymorphic.hpp> - -#include <boost/mpl/assert.hpp> -#include <boost/mpl/and.hpp> -#include <boost/mpl/not.hpp> -#include <boost/mpl/bool_fwd.hpp> - -#include <boost/serialization/extended_type_info.hpp> // for guid_defined only -#include <boost/serialization/static_warning.hpp> -#include <boost/serialization/assume_abstract.hpp> -#include <boost/serialization/force_include.hpp> -#include <boost/serialization/singleton.hpp> - -#include <boost/archive/detail/register_archive.hpp> - -#include <iostream> - -namespace boost { -namespace archive { -namespace detail { - -class basic_pointer_iserializer; -class basic_pointer_oserializer; - -template<class Archive, class T> -class pointer_iserializer; -template<class Archive, class T> -class pointer_oserializer; - -template <class Archive, class Serializable> -struct export_impl -{ - static const basic_pointer_iserializer & - enable_load(mpl::true_){ - return boost::serialization::singleton< - pointer_iserializer<Archive, Serializable> - >::get_const_instance(); - } - - static const basic_pointer_oserializer & - enable_save(mpl::true_){ - return boost::serialization::singleton< - pointer_oserializer<Archive, Serializable> - >::get_const_instance(); - } - inline static void enable_load(mpl::false_) {} - inline static void enable_save(mpl::false_) {} -}; - -// On many platforms, naming a specialization of this template is -// enough to cause its argument to be instantiated. -template <void(*)()> -struct instantiate_function {}; - -template <class Archive, class Serializable> -struct ptr_serialization_support -{ -# if defined(BOOST_MSVC) || defined(__SUNPRO_CC) - virtual BOOST_DLLEXPORT void instantiate() BOOST_USED; -# else - static BOOST_DLLEXPORT void instantiate() BOOST_USED; - typedef instantiate_function< - &ptr_serialization_support::instantiate - > x; -# endif -}; - -template <class Archive, class Serializable> -BOOST_DLLEXPORT void -ptr_serialization_support<Archive,Serializable>::instantiate() -{ - export_impl<Archive,Serializable>::enable_save( - typename Archive::is_saving() - ); - - export_impl<Archive,Serializable>::enable_load( - typename Archive::is_loading() - ); -} - -// Note INTENTIONAL usage of anonymous namespace in header. -// This was made this way so that export.hpp could be included -// in other headers. This is still under study. - -namespace extra_detail { - -template<class T> -struct guid_initializer -{ - void export_guid(mpl::false_) const { - // generates the statically-initialized objects whose constructors - // register the information allowing serialization of T objects - // through pointers to their base classes. - instantiate_ptr_serialization((T*)0, 0, adl_tag()); - } - void export_guid(mpl::true_) const { - } - guid_initializer const & export_guid() const { - BOOST_STATIC_WARNING(boost::is_polymorphic< T >::value); - // note: exporting an abstract base class will have no effect - // and cannot be used to instantitiate serialization code - // (one might be using this in a DLL to instantiate code) - //BOOST_STATIC_WARNING(! boost::serialization::is_abstract< T >::value); - export_guid(boost::serialization::is_abstract< T >()); - return *this; - } -}; - -template<typename T> -struct init_guid; - -} // anonymous -} // namespace detail -} // namespace archive -} // namespace boost - -#define BOOST_CLASS_EXPORT_IMPLEMENT(T) \ - namespace boost { \ - namespace archive { \ - namespace detail { \ - namespace extra_detail { \ - template<> \ - struct init_guid< T > { \ - static guid_initializer< T > const & g; \ - }; \ - guid_initializer< T > const & init_guid< T >::g = \ - ::boost::serialization::singleton< \ - guid_initializer< T > \ - >::get_mutable_instance().export_guid(); \ - }}}} \ -/**/ - -#define BOOST_CLASS_EXPORT_KEY2(T, K) \ -namespace boost { \ -namespace serialization { \ -template<> \ -struct guid_defined< T > : boost::mpl::true_ {}; \ -template<> \ -inline const char * guid< T >(){ \ - return K; \ -} \ -} /* serialization */ \ -} /* boost */ \ -/**/ - -#define BOOST_CLASS_EXPORT_KEY(T) \ - BOOST_CLASS_EXPORT_KEY2(T, BOOST_PP_STRINGIZE(T)) \ -/**/ - -#define BOOST_CLASS_EXPORT_GUID(T, K) \ -BOOST_CLASS_EXPORT_KEY2(T, K) \ -BOOST_CLASS_EXPORT_IMPLEMENT(T) \ -/**/ - -#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205)) - -// CodeWarrior fails to construct static members of class templates -// when they are instantiated from within templates, so on that -// compiler we ask users to specifically register base/derived class -// relationships for exported classes. On all other compilers, use of -// this macro is entirely optional. -# define BOOST_SERIALIZATION_MWERKS_BASE_AND_DERIVED(Base,Derived) \ -namespace { \ - static int BOOST_PP_CAT(boost_serialization_mwerks_init_, __LINE__) = \ - (::boost::archive::detail::instantiate_ptr_serialization((Derived*)0,0), 3); \ - static int BOOST_PP_CAT(boost_serialization_mwerks_init2_, __LINE__) = ( \ - ::boost::serialization::void_cast_register((Derived*)0,(Base*)0) \ - , 3); \ -} - -#else - -# define BOOST_SERIALIZATION_MWERKS_BASE_AND_DERIVED(Base,Derived) - -#endif - -// check for unnecessary export. T isn't polymorphic so there is no -// need to export it. -#define BOOST_CLASS_EXPORT_CHECK(T) \ - BOOST_STATIC_WARNING( \ - boost::is_polymorphic<U>::value \ - ); \ - /**/ - -// the default exportable class identifier is the class name -// the default list of archives types for which code id generated -// are the originally included with this serialization system -#define BOOST_CLASS_EXPORT(T) \ - BOOST_CLASS_EXPORT_GUID( \ - T, \ - BOOST_PP_STRINGIZE(T) \ - ) \ - /**/ - -#endif // BOOST_SERIALIZATION_EXPORT_HPP - diff --git a/contrib/restricted/boost/boost/serialization/forward_list.hpp b/contrib/restricted/boost/boost/serialization/forward_list.hpp deleted file mode 100644 index b8a3c20a6ea..00000000000 --- a/contrib/restricted/boost/boost/serialization/forward_list.hpp +++ /dev/null @@ -1,124 +0,0 @@ -#ifndef BOOST_SERIALIZATION_FORWARD_LIST_HPP -#define BOOST_SERIALIZATION_FORWARD_LIST_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// forward_list.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> - -#include <forward_list> -#include <iterator> // distance - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/collections_load_imp.hpp> -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/serialization/detail/is_default_constructible.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const std::forward_list<U, Allocator> &t, - const unsigned int /*file_version*/ -){ - const collection_size_type count(std::distance(t.cbegin(), t.cend())); - boost::serialization::stl::save_collection< - Archive, - std::forward_list<U, Allocator> - >(ar, t, count); -} - -namespace stl { - -template< - class Archive, - class T, - class Allocator -> -typename boost::disable_if< - typename detail::is_default_constructible< - typename std::forward_list<T, Allocator>::value_type - >, - void ->::type -collection_load_impl( - Archive & ar, - std::forward_list<T, Allocator> &t, - collection_size_type count, - item_version_type item_version -){ - t.clear(); - boost::serialization::detail::stack_construct<Archive, T> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - t.push_front(boost::move(u.reference())); - typename std::forward_list<T, Allocator>::iterator last; - last = t.begin(); - ar.reset_object_address(&(*t.begin()) , & u.reference()); - while(--count > 0){ - detail::stack_construct<Archive, T> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - last = t.insert_after(last, boost::move(u.reference())); - ar.reset_object_address(&(*last) , & u.reference()); - } -} - -} // stl - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - std::forward_list<U, Allocator> &t, - const unsigned int /*file_version*/ -){ - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - stl::collection_load_impl(ar, t, count, item_version); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class U, class Allocator> -inline void serialize( - Archive & ar, - std::forward_list<U, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(std::forward_list) - -#endif // BOOST_SERIALIZATION_FORWARD_LIST_HPP diff --git a/contrib/restricted/boost/boost/serialization/hash_collections_load_imp.hpp b/contrib/restricted/boost/boost/serialization/hash_collections_load_imp.hpp deleted file mode 100644 index 88def8f1aa4..00000000000 --- a/contrib/restricted/boost/boost/serialization/hash_collections_load_imp.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef BOOST_SERIALIZATION_HASH_COLLECTIONS_LOAD_IMP_HPP -#define BOOST_SERIALIZATION_HASH_COLLECTIONS_LOAD_IMP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -# pragma warning (disable : 4786) // too long name, harmless warning -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// hash_collections_load_imp.hpp: serialization for loading stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// helper function templates for serialization of hashed collections -#include <boost/config.hpp> -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -namespace boost{ -namespace serialization { -namespace stl { - -////////////////////////////////////////////////////////////////////// -// implementation of serialization for STL containers -// -template<class Archive, class Container, class InputFunction> -inline void load_hash_collection(Archive & ar, Container &s) -{ - collection_size_type count; - collection_size_type bucket_count; - boost::serialization::item_version_type item_version(0); - boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - if(boost::archive::library_version_type(6) != library_version){ - ar >> BOOST_SERIALIZATION_NVP(count); - ar >> BOOST_SERIALIZATION_NVP(bucket_count); - } - else{ - // note: fixup for error in version 6. collection size was - // changed to size_t BUT for hashed collections it was implemented - // as an unsigned int. This should be a problem only on win64 machines - // but I'll leave it for everyone just in case. - unsigned int c; - unsigned int bc; - ar >> BOOST_SERIALIZATION_NVP(c); - count = c; - ar >> BOOST_SERIALIZATION_NVP(bc); - bucket_count = bc; - } - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - s.clear(); - #if ! defined(__MWERKS__) - s.resize(bucket_count); - #endif - InputFunction ifunc; - while(count-- > 0){ - ifunc(ar, s, item_version); - } -} - -} // namespace stl -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_HASH_COLLECTIONS_LOAD_IMP_HPP diff --git a/contrib/restricted/boost/boost/serialization/hash_collections_save_imp.hpp b/contrib/restricted/boost/boost/serialization/hash_collections_save_imp.hpp deleted file mode 100644 index 65dfe83f16e..00000000000 --- a/contrib/restricted/boost/boost/serialization/hash_collections_save_imp.hpp +++ /dev/null @@ -1,97 +0,0 @@ -#ifndef BOOST_SERIALIZATION_HASH_COLLECTIONS_SAVE_IMP_HPP -#define BOOST_SERIALIZATION_HASH_COLLECTIONS_SAVE_IMP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// hash_collections_save_imp.hpp: serialization for stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// helper function templates for serialization of collections - -#include <boost/config.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/serialization.hpp> -#include <boost/serialization/version.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -namespace boost{ -namespace serialization { -namespace stl { - -////////////////////////////////////////////////////////////////////// -// implementation of serialization for STL containers -// - -template<class Archive, class Container> -inline void save_hash_collection(Archive & ar, const Container &s) -{ - collection_size_type count(s.size()); - const collection_size_type bucket_count(s.bucket_count()); - const item_version_type item_version( - version<typename Container::value_type>::value - ); - - #if 0 - /* should only be necessary to create archives of previous versions - * which is not currently supported. So for now comment this out - */ - boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - if(boost::archive::library_version_type(6) != library_version){ - ar << BOOST_SERIALIZATION_NVP(count); - ar << BOOST_SERIALIZATION_NVP(bucket_count); - } - else{ - // note: fixup for error in version 6. collection size was - // changed to size_t BUT for hashed collections it was implemented - // as an unsigned int. This should be a problem only on win64 machines - // but I'll leave it for everyone just in case. - const unsigned int c = count; - const unsigned int bc = bucket_count; - ar << BOOST_SERIALIZATION_NVP(c); - ar << BOOST_SERIALIZATION_NVP(bc); - } - if(boost::archive::library_version_type(3) < library_version){ - // record number of elements - // make sure the target type is registered so we can retrieve - // the version when we load - ar << BOOST_SERIALIZATION_NVP(item_version); - } - #else - ar << BOOST_SERIALIZATION_NVP(count); - ar << BOOST_SERIALIZATION_NVP(bucket_count); - ar << BOOST_SERIALIZATION_NVP(item_version); - #endif - - typename Container::const_iterator it = s.begin(); - while(count-- > 0){ - // note borland emits a no-op without the explicit namespace - boost::serialization::save_construct_data_adl( - ar, - &(*it), - boost::serialization::version< - typename Container::value_type - >::value - ); - ar << boost::serialization::make_nvp("item", *it++); - } -} - -} // namespace stl -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_HASH_COLLECTIONS_SAVE_IMP_HPP diff --git a/contrib/restricted/boost/boost/serialization/hash_map.hpp b/contrib/restricted/boost/boost/serialization/hash_map.hpp deleted file mode 100644 index 22626db6838..00000000000 --- a/contrib/restricted/boost/boost/serialization/hash_map.hpp +++ /dev/null @@ -1,232 +0,0 @@ -#ifndef BOOST_SERIALIZATION_HASH_MAP_HPP -#define BOOST_SERIALIZATION_HASH_MAP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization/hash_map.hpp: -// serialization for stl hash_map templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_HAS_HASH -#include BOOST_HASH_MAP_HEADER - -#include <boost/serialization/utility.hpp> -#include <boost/serialization/hash_collections_save_imp.hpp> -#include <boost/serialization/hash_collections_load_imp.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -namespace stl { - -// map input -template<class Archive, class Container> -struct archive_input_hash_map -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - // borland fails silently w/o full namespace - ar >> boost::serialization::make_nvp("item", t.reference()); - std::pair<typename Container::const_iterator, bool> result = - s.insert(boost::move(t.reference())); - // note: the following presumes that the map::value_type was NOT tracked - // in the archive. This is the usual case, but here there is no way - // to determine that. - if(result.second){ - ar.reset_object_address( - & (result.first->second), - & t.reference().second - ); - } - } -}; - -// multimap input -template<class Archive, class Container> -struct archive_input_hash_multimap -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - // borland fails silently w/o full namespace - ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::const_iterator result - = s.insert(boost::move(t.reference())); - // note: the following presumes that the map::value_type was NOT tracked - // in the archive. This is the usual case, but here there is no way - // to determine that. - ar.reset_object_address( - & result->second, - & t.reference() - ); - } -}; - -} // stl - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const BOOST_STD_EXTENSION_NAMESPACE::hash_map< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::save_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_map< - Key, HashFcn, EqualKey, Allocator - > - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_map< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::load_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_map< - Key, HashFcn, EqualKey, Allocator - >, - boost::serialization::stl::archive_input_hash_map< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_map< - Key, HashFcn, EqualKey, Allocator - > - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_map< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// hash_multimap -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const BOOST_STD_EXTENSION_NAMESPACE::hash_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::save_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_multimap< - Key, HashFcn, EqualKey, Allocator - > - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::load_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_multimap< - Key, HashFcn, EqualKey, Allocator - >, - boost::serialization::stl::archive_input_hash_multimap< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_multimap< - Key, HashFcn, EqualKey, Allocator - > - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_HAS_HASH -#endif // BOOST_SERIALIZATION_HASH_MAP_HPP diff --git a/contrib/restricted/boost/boost/serialization/hash_set.hpp b/contrib/restricted/boost/boost/serialization/hash_set.hpp deleted file mode 100644 index 0c72c18457e..00000000000 --- a/contrib/restricted/boost/boost/serialization/hash_set.hpp +++ /dev/null @@ -1,222 +0,0 @@ -#ifndef BOOST_SERIALIZATION_HASH_SET_HPP -#define BOOST_SERIALIZATION_HASH_SET_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// hash_set.hpp: serialization for stl hash_set templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_HAS_HASH -#include BOOST_HASH_SET_HEADER - -#include <boost/serialization/hash_collections_save_imp.hpp> -#include <boost/serialization/hash_collections_load_imp.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -namespace stl { - -// hash_set input -template<class Archive, class Container> -struct archive_input_hash_set -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - // borland fails silently w/o full namespace - ar >> boost::serialization::make_nvp("item", t.reference()); - std::pair<typename Container::const_iterator, bool> result = - s.insert(boost::move(t.reference())); - if(result.second) - ar.reset_object_address(& (* result.first), & t.reference()); - } -}; - -// hash_multiset input -template<class Archive, class Container> -struct archive_input_hash_multiset -{ - inline void operator()( - Archive &ar, - Container &s, - const unsigned int v - ){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, v); - // borland fails silently w/o full namespace - ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::const_iterator result - = s.insert(boost::move(t.reference())); - ar.reset_object_address(& (* result), & t.reference()); - } -}; - -} // stl - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const BOOST_STD_EXTENSION_NAMESPACE::hash_set< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::save_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_set< - Key, HashFcn, EqualKey, Allocator - > - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_set< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::load_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_set< - Key, HashFcn, EqualKey, Allocator - >, - boost::serialization::stl::archive_input_hash_set< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_set< - Key, HashFcn, EqualKey, Allocator - > - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_set< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// hash_multiset -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const BOOST_STD_EXTENSION_NAMESPACE::hash_multiset< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::save_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_multiset< - Key, HashFcn, EqualKey, Allocator - > - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_multiset< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::stl::load_hash_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_multiset< - Key, HashFcn, EqualKey, Allocator - >, - boost::serialization::stl::archive_input_hash_multiset< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::hash_multiset< - Key, HashFcn, EqualKey, Allocator - > - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::hash_multiset< - Key, HashFcn, EqualKey, Allocator - > & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(BOOST_STD_EXTENSION_NAMESPACE::hash_set) -BOOST_SERIALIZATION_COLLECTION_TRAITS(BOOST_STD_EXTENSION_NAMESPACE::hash_multiset) - -#endif // BOOST_HAS_HASH -#endif // BOOST_SERIALIZATION_HASH_SET_HPP diff --git a/contrib/restricted/boost/boost/serialization/list.hpp b/contrib/restricted/boost/boost/serialization/list.hpp deleted file mode 100644 index 5fdc114d7ed..00000000000 --- a/contrib/restricted/boost/boost/serialization/list.hpp +++ /dev/null @@ -1,85 +0,0 @@ -#ifndef BOOST_SERIALIZATION_LIST_HPP -#define BOOST_SERIALIZATION_LIST_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// list.hpp: serialization for stl list templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <list> - -#include <boost/config.hpp> - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/collections_load_imp.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/access.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const std::list<U, Allocator> &t, - const unsigned int /* file_version */ -){ - boost::serialization::stl::save_collection< - Archive, - std::list<U, Allocator> - >(ar, t); -} - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - std::list<U, Allocator> &t, - const unsigned int /* file_version */ -){ - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - stl::collection_load_impl(ar, t, count, item_version); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class U, class Allocator> -inline void serialize( - Archive & ar, - std::list<U, Allocator> & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(std::list) - -#endif // BOOST_SERIALIZATION_LIST_HPP diff --git a/contrib/restricted/boost/boost/serialization/map.hpp b/contrib/restricted/boost/boost/serialization/map.hpp deleted file mode 100644 index 9209864c8cf..00000000000 --- a/contrib/restricted/boost/boost/serialization/map.hpp +++ /dev/null @@ -1,139 +0,0 @@ -#ifndef BOOST_SERIALIZATION_MAP_HPP -#define BOOST_SERIALIZATION_MAP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization/map.hpp: -// serialization for stl map templates - -// (C) Copyright 2002-2014 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <map> - -#include <boost/config.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/access.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> - -#include <boost/serialization/utility.hpp> -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// implementation of serialization for map and mult-map STL containers - -template<class Archive, class Container> -inline void load_map_collection(Archive & ar, Container &s) -{ - s.clear(); - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - typename Container::iterator hint; - hint = s.begin(); - while(count-- > 0){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, item_version); - ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::iterator result = - s.insert(hint, boost::move(t.reference())); - ar.reset_object_address(& (result->second), & t.reference().second); - hint = result; - ++hint; - } -} - -// map -template<class Archive, class Type, class Key, class Compare, class Allocator > -inline void save( - Archive & ar, - const std::map<Key, Type, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - boost::serialization::stl::save_collection< - Archive, - std::map<Key, Type, Compare, Allocator> - >(ar, t); -} - -template<class Archive, class Type, class Key, class Compare, class Allocator > -inline void load( - Archive & ar, - std::map<Key, Type, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - load_map_collection(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class Type, class Key, class Compare, class Allocator > -inline void serialize( - Archive & ar, - std::map<Key, Type, Compare, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// multimap -template<class Archive, class Type, class Key, class Compare, class Allocator > -inline void save( - Archive & ar, - const std::multimap<Key, Type, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - boost::serialization::stl::save_collection< - Archive, - std::multimap<Key, Type, Compare, Allocator> - >(ar, t); -} - -template<class Archive, class Type, class Key, class Compare, class Allocator > -inline void load( - Archive & ar, - std::multimap<Key, Type, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - load_map_collection(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class Type, class Key, class Compare, class Allocator > -inline void serialize( - Archive & ar, - std::multimap<Key, Type, Compare, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_MAP_HPP diff --git a/contrib/restricted/boost/boost/serialization/optional.hpp b/contrib/restricted/boost/boost/serialization/optional.hpp deleted file mode 100644 index d6ff830a8c3..00000000000 --- a/contrib/restricted/boost/boost/serialization/optional.hpp +++ /dev/null @@ -1,107 +0,0 @@ -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 - -// (C) Copyright 2002-4 Pavel Vozenilek . -// 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) - -// Provides non-intrusive serialization for boost::optional. - -#ifndef BOOST_SERIALIZATION_OPTIONAL_HPP_ -#define BOOST_SERIALIZATION_OPTIONAL_HPP_ - -#if defined(_MSC_VER) -# pragma once -#endif - -#include <boost/config.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> - -#include <boost/optional.hpp> -#include <boost/move/utility_core.hpp> - -#include <boost/serialization/item_version_type.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/level.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/version.hpp> -#include <boost/type_traits/is_pointer.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/serialization/detail/is_default_constructible.hpp> -#include <boost/serialization/force_include.hpp> - -// function specializations must be defined in the appropriate -// namespace - boost::serialization -namespace boost { -namespace serialization { - -template<class Archive, class T> -void save( - Archive & ar, - const boost::optional< T > & t, - const unsigned int /*version*/ -){ - // It is an inherent limitation to the serialization of optional.hpp - // that the underlying type must be either a pointer or must have a - // default constructor. It's possible that this could change sometime - // in the future, but for now, one will have to work around it. This can - // be done by serialization the optional<T> as optional<T *> - #if ! defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) - BOOST_STATIC_ASSERT( - boost::serialization::detail::is_default_constructible<T>::value - || boost::is_pointer<T>::value - ); - #endif - const bool tflag = t.is_initialized(); - ar << boost::serialization::make_nvp("initialized", tflag); - if (tflag){ - ar << boost::serialization::make_nvp("value", *t); - } -} - -template<class Archive, class T> -void load( - Archive & ar, - boost::optional< T > & t, - const unsigned int version -){ - bool tflag; - ar >> boost::serialization::make_nvp("initialized", tflag); - if(! tflag){ - t.reset(); - return; - } - - if(0 == version){ - boost::serialization::item_version_type item_version(0); - boost::archive::library_version_type library_version( - ar.get_library_version() - ); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - } - if(! t.is_initialized()) - t = T(); - ar >> boost::serialization::make_nvp("value", *t); -} - -template<class Archive, class T> -void serialize( - Archive & ar, - boost::optional< T > & t, - const unsigned int version -){ - boost::serialization::split_free(ar, t, version); -} - -template<class T> -struct version<boost::optional<T> > { - BOOST_STATIC_CONSTANT(int, value = 1); -}; - -} // serialization -} // boost - -#endif // BOOST_SERIALIZATION_OPTIONAL_HPP_ diff --git a/contrib/restricted/boost/boost/serialization/priority_queue.hpp b/contrib/restricted/boost/boost/serialization/priority_queue.hpp deleted file mode 100644 index 5b08ffd1e82..00000000000 --- a/contrib/restricted/boost/boost/serialization/priority_queue.hpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef BOOST_SERIALIZATION_PRIORITY_QUEUE_HPP -#define BOOST_SERIALIZATION_PRIORITY_QUEUE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// priority_queue.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <queue> -#include <boost/config.hpp> -#include <boost/mpl/eval_if.hpp> -#include <boost/mpl/identity.hpp> - -// function specializations must be defined in the appropriate -// namespace - boost::serialization -#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -#define STD _STLP_STD -#else -#define STD std -#endif - -namespace boost { -namespace serialization { -namespace detail{ - -template <typename U, typename Container, typename Compare> -struct priority_queue_save : public STD::priority_queue<U, Container, Compare> { - template<class Archive> - void operator()(Archive & ar, const unsigned int file_version) const { - save(ar, STD::priority_queue<U, Container, Compare>::c, file_version); - } -}; -template <typename U, typename Container, typename Compare> -struct priority_queue_load : public STD::priority_queue<U, Container, Compare> { - template<class Archive> - void operator()(Archive & ar, const unsigned int file_version) { - load(ar, STD::priority_queue<U, Container, Compare>::c, file_version); - } -}; - -} // detail - -template<class Archive, class T, class Container, class Compare> -inline void serialize( - Archive & ar, - std::priority_queue< T, Container, Compare> & t, - const unsigned int file_version -){ - typedef typename mpl::eval_if< - typename Archive::is_saving, - mpl::identity<detail::priority_queue_save<T, Container, Compare> >, - mpl::identity<detail::priority_queue_load<T, Container, Compare> > - >::type typex; - static_cast<typex &>(t)(ar, file_version); -} - -} // namespace serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(STD::priority_queue) - -#undef STD - -#endif // BOOST_SERIALIZATION_PRIORITY_QUEUE_HPP diff --git a/contrib/restricted/boost/boost/serialization/queue.hpp b/contrib/restricted/boost/boost/serialization/queue.hpp deleted file mode 100644 index b22745215d9..00000000000 --- a/contrib/restricted/boost/boost/serialization/queue.hpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef BOOST_SERIALIZATION_QUEUE_HPP -#define BOOST_SERIALIZATION_QUEUE_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// queue.hpp - -// (C) Copyright 2014 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <queue> -#include <boost/config.hpp> -#include <boost/mpl/eval_if.hpp> -#include <boost/mpl/identity.hpp> - -// function specializations must be defined in the appropriate -// namespace - boost::serialization -#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -#define STD _STLP_STD -#else -#define STD std -#endif - -namespace boost { -namespace serialization { -namespace detail { - -template <typename U, typename C> -struct queue_save : public STD::queue<U, C> { - template<class Archive> - void operator()(Archive & ar, const unsigned int file_version) const { - save(ar, STD::queue<U, C>::c, file_version); - } -}; -template <typename U, typename C> -struct queue_load : public STD::queue<U, C> { - template<class Archive> - void operator()(Archive & ar, const unsigned int file_version) { - load(ar, STD::queue<U, C>::c, file_version); - } -}; - -} // detail - -template<class Archive, class T, class C> -inline void serialize( - Archive & ar, - std::queue< T, C> & t, - const unsigned int file_version -){ - typedef typename mpl::eval_if< - typename Archive::is_saving, - mpl::identity<detail::queue_save<T, C> >, - mpl::identity<detail::queue_load<T, C> > - >::type typex; - static_cast<typex &>(t)(ar, file_version); -} - -} // namespace serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(STD::queue) - -#undef STD - -#endif // BOOST_SERIALIZATION_QUEUE_HPP diff --git a/contrib/restricted/boost/boost/serialization/scoped_ptr.hpp b/contrib/restricted/boost/boost/serialization/scoped_ptr.hpp deleted file mode 100644 index 0d11f8436e0..00000000000 --- a/contrib/restricted/boost/boost/serialization/scoped_ptr.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef BOOST_SERIALIZATION_SCOPED_PTR_HPP_VP_2003_10_30 -#define BOOST_SERIALIZATION_SCOPED_PTR_HPP_VP_2003_10_30 - -#if defined(_MSC_VER) -# pragma once -#endif - -// Copyright (c) 2003 Vladimir Prus. -// 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) - -// Provides non-intrusive serialization for boost::scoped_ptr -// Does not allow to serialize scoped_ptr's to builtin types. - -#include <boost/config.hpp> - -#include <boost/scoped_ptr.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - - template<class Archive, class T> - void save( - Archive & ar, - const boost::scoped_ptr< T > & t, - const unsigned int /* version */ - ){ - T* r = t.get(); - ar << boost::serialization::make_nvp("scoped_ptr", r); - } - - template<class Archive, class T> - void load( - Archive & ar, - boost::scoped_ptr< T > & t, - const unsigned int /* version */ - ){ - T* r; - ar >> boost::serialization::make_nvp("scoped_ptr", r); - t.reset(r); - } - - template<class Archive, class T> - void serialize( - Archive& ar, - boost::scoped_ptr< T >& t, - const unsigned int version - ){ - boost::serialization::split_free(ar, t, version); - } - -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_SCOPED_PTR_HPP_VP_2003_10_30 diff --git a/contrib/restricted/boost/boost/serialization/set.hpp b/contrib/restricted/boost/boost/serialization/set.hpp deleted file mode 100644 index 643906c5aac..00000000000 --- a/contrib/restricted/boost/boost/serialization/set.hpp +++ /dev/null @@ -1,137 +0,0 @@ -#ifndef BOOST_SERIALIZATION_SET_HPP -#define BOOST_SERIALIZATION_SET_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// set.hpp: serialization for stl set templates - -// (C) Copyright 2002-2014 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <set> - -#include <boost/config.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/access.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -template<class Archive, class Container> -inline void load_set_collection(Archive & ar, Container &s) -{ - s.clear(); - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - typename Container::iterator hint; - hint = s.begin(); - while(count-- > 0){ - typedef typename Container::value_type type; - detail::stack_construct<Archive, type> t(ar, item_version); - // borland fails silently w/o full namespace - ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::iterator result = - s.insert(hint, boost::move(t.reference())); - ar.reset_object_address(& (* result), & t.reference()); - hint = result; - } -} - -template<class Archive, class Key, class Compare, class Allocator > -inline void save( - Archive & ar, - const std::set<Key, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - boost::serialization::stl::save_collection< - Archive, std::set<Key, Compare, Allocator> - >(ar, t); -} - -template<class Archive, class Key, class Compare, class Allocator > -inline void load( - Archive & ar, - std::set<Key, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - load_set_collection(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class Key, class Compare, class Allocator > -inline void serialize( - Archive & ar, - std::set<Key, Compare, Allocator> & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// multiset -template<class Archive, class Key, class Compare, class Allocator > -inline void save( - Archive & ar, - const std::multiset<Key, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - boost::serialization::stl::save_collection< - Archive, - std::multiset<Key, Compare, Allocator> - >(ar, t); -} - -template<class Archive, class Key, class Compare, class Allocator > -inline void load( - Archive & ar, - std::multiset<Key, Compare, Allocator> &t, - const unsigned int /* file_version */ -){ - load_set_collection(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class Key, class Compare, class Allocator > -inline void serialize( - Archive & ar, - std::multiset<Key, Compare, Allocator> & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(std::set) -BOOST_SERIALIZATION_COLLECTION_TRAITS(std::multiset) - -#endif // BOOST_SERIALIZATION_SET_HPP diff --git a/contrib/restricted/boost/boost/serialization/shared_ptr.hpp b/contrib/restricted/boost/boost/serialization/shared_ptr.hpp deleted file mode 100644 index 0d4c5ae6056..00000000000 --- a/contrib/restricted/boost/boost/serialization/shared_ptr.hpp +++ /dev/null @@ -1,281 +0,0 @@ -#ifndef BOOST_SERIALIZATION_SHARED_PTR_HPP -#define BOOST_SERIALIZATION_SHARED_PTR_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// shared_ptr.hpp: serialization for boost shared pointer - -// (C) Copyright 2004 Robert Ramey and Martin Ecker -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <cstddef> // NULL -#include <memory> - -#include <boost/config.hpp> -#include <boost/mpl/integral_c.hpp> -#include <boost/mpl/integral_c_tag.hpp> - -#include <boost/detail/workaround.hpp> -#include <boost/shared_ptr.hpp> - -#include <boost/serialization/shared_ptr_helper.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/version.hpp> -#include <boost/serialization/tracking.hpp> - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// boost:: shared_ptr serialization traits -// version 1 to distinguish from boost 1.32 version. Note: we can only do this -// for a template when the compiler supports partial template specialization - -#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - namespace boost { - namespace serialization{ - template<class T> - struct version< ::boost::shared_ptr< T > > { - typedef mpl::integral_c_tag tag; - #if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3206)) - typedef typename mpl::int_<1> type; - #else - typedef mpl::int_<1> type; - #endif - BOOST_STATIC_CONSTANT(int, value = type::value); - }; - // don't track shared pointers - template<class T> - struct tracking_level< ::boost::shared_ptr< T > > { - typedef mpl::integral_c_tag tag; - #if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3206)) - typedef typename mpl::int_< ::boost::serialization::track_never> type; - #else - typedef mpl::int_< ::boost::serialization::track_never> type; - #endif - BOOST_STATIC_CONSTANT(int, value = type::value); - }; - }} - #define BOOST_SERIALIZATION_SHARED_PTR(T) -#else - // define macro to let users of these compilers do this - #define BOOST_SERIALIZATION_SHARED_PTR(T) \ - BOOST_CLASS_VERSION( \ - ::boost::shared_ptr< T >, \ - 1 \ - ) \ - BOOST_CLASS_TRACKING( \ - ::boost::shared_ptr< T >, \ - ::boost::serialization::track_never \ - ) \ - /**/ -#endif - -namespace boost { -namespace serialization{ - -struct null_deleter { - void operator()(void const *) const {} -}; - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization for boost::shared_ptr - -// Using a constant means that all shared pointers are held in the same set. -// Thus we detect handle multiple pointers to the same value instances -// in the archive. -void * const shared_ptr_helper_id = 0; - -template<class Archive, class T> -inline void save( - Archive & ar, - const boost::shared_ptr< T > &t, - const unsigned int /* file_version */ -){ - // The most common cause of trapping here would be serializing - // something like shared_ptr<int>. This occurs because int - // is never tracked by default. Wrap int in a trackable type - BOOST_STATIC_ASSERT((tracking_level< T >::value != track_never)); - const T * t_ptr = t.get(); - ar << boost::serialization::make_nvp("px", t_ptr); -} - -#ifdef BOOST_SERIALIZATION_SHARED_PTR_132_HPP -template<class Archive, class T> -inline void load( - Archive & ar, - boost::shared_ptr< T > &t, - const unsigned int file_version -){ - // something like shared_ptr<int>. This occurs because int - // is never tracked by default. Wrap int in a trackable type - BOOST_STATIC_ASSERT((tracking_level< T >::value != track_never)); - T* r; - if(file_version < 1){ - ar.register_type(static_cast< - boost_132::detail::sp_counted_base_impl<T *, null_deleter > * - >(NULL)); - boost_132::shared_ptr< T > sp; - ar >> boost::serialization::make_nvp("px", sp.px); - ar >> boost::serialization::make_nvp("pn", sp.pn); - // got to keep the sps around so the sp.pns don't disappear - boost::serialization::shared_ptr_helper<boost::shared_ptr> & h = - ar.template get_helper< shared_ptr_helper<boost::shared_ptr> >( - shared_ptr_helper_id - ); - h.append(sp); - r = sp.get(); - } - else{ - ar >> boost::serialization::make_nvp("px", r); - } - shared_ptr_helper<boost::shared_ptr> & h = - ar.template get_helper<shared_ptr_helper<boost::shared_ptr> >( - shared_ptr_helper_id - ); - h.reset(t,r); -} -#else - -template<class Archive, class T> -inline void load( - Archive & ar, - boost::shared_ptr< T > &t, - const unsigned int /*file_version*/ -){ - // The most common cause of trapping here would be serializing - // something like shared_ptr<int>. This occurs because int - // is never tracked by default. Wrap int in a trackable type - BOOST_STATIC_ASSERT((tracking_level< T >::value != track_never)); - T* r; - ar >> boost::serialization::make_nvp("px", r); - - boost::serialization::shared_ptr_helper<boost::shared_ptr> & h = - ar.template get_helper<shared_ptr_helper<boost::shared_ptr> >( - shared_ptr_helper_id - ); - h.reset(t,r); -} -#endif - -template<class Archive, class T> -inline void serialize( - Archive & ar, - boost::shared_ptr< T > &t, - const unsigned int file_version -){ - // correct shared_ptr serialization depends upon object tracking - // being used. - BOOST_STATIC_ASSERT( - boost::serialization::tracking_level< T >::value - != boost::serialization::track_never - ); - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// std::shared_ptr serialization traits -// version 1 to distinguish from boost 1.32 version. Note: we can only do this -// for a template when the compiler supports partial template specialization - -#ifndef BOOST_NO_CXX11_SMART_PTR -#include <boost/static_assert.hpp> - -// note: we presume that any compiler/library which supports C++11 -// std::pointers also supports template partial specialization -// trap here if such presumption were to turn out to wrong!!! -#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - BOOST_STATIC_ASSERT(false); -#endif - -namespace boost { -namespace serialization{ - template<class T> - struct version< ::std::shared_ptr< T > > { - typedef mpl::integral_c_tag tag; - typedef mpl::int_<1> type; - BOOST_STATIC_CONSTANT(int, value = type::value); - }; - // don't track shared pointers - template<class T> - struct tracking_level< ::std::shared_ptr< T > > { - typedef mpl::integral_c_tag tag; - typedef mpl::int_< ::boost::serialization::track_never> type; - BOOST_STATIC_CONSTANT(int, value = type::value); - }; -}} -// the following just keeps older programs from breaking -#define BOOST_SERIALIZATION_SHARED_PTR(T) - -namespace boost { -namespace serialization{ - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization for std::shared_ptr - -template<class Archive, class T> -inline void save( - Archive & ar, - const std::shared_ptr< T > &t, - const unsigned int /* file_version */ -){ - // The most common cause of trapping here would be serializing - // something like shared_ptr<int>. This occurs because int - // is never tracked by default. Wrap int in a trackable type - BOOST_STATIC_ASSERT((tracking_level< T >::value != track_never)); - const T * t_ptr = t.get(); - ar << boost::serialization::make_nvp("px", t_ptr); -} - -template<class Archive, class T> -inline void load( - Archive & ar, - std::shared_ptr< T > &t, - const unsigned int /*file_version*/ -){ - // The most common cause of trapping here would be serializing - // something like shared_ptr<int>. This occurs because int - // is never tracked by default. Wrap int in a trackable type - BOOST_STATIC_ASSERT((tracking_level< T >::value != track_never)); - T* r; - ar >> boost::serialization::make_nvp("px", r); - //void (* const id)(Archive &, std::shared_ptr< T > &, const unsigned int) = & load; - boost::serialization::shared_ptr_helper<std::shared_ptr> & h = - ar.template get_helper< - shared_ptr_helper<std::shared_ptr> - >( - shared_ptr_helper_id - ); - h.reset(t,r); -} - -template<class Archive, class T> -inline void serialize( - Archive & ar, - std::shared_ptr< T > &t, - const unsigned int file_version -){ - // correct shared_ptr serialization depends upon object tracking - // being used. - BOOST_STATIC_ASSERT( - boost::serialization::tracking_level< T >::value - != boost::serialization::track_never - ); - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_NO_CXX11_SMART_PTR - -#endif // BOOST_SERIALIZATION_SHARED_PTR_HPP diff --git a/contrib/restricted/boost/boost/serialization/shared_ptr_132.hpp b/contrib/restricted/boost/boost/serialization/shared_ptr_132.hpp deleted file mode 100644 index 3dfaba4d69a..00000000000 --- a/contrib/restricted/boost/boost/serialization/shared_ptr_132.hpp +++ /dev/null @@ -1,222 +0,0 @@ -#ifndef BOOST_SERIALIZATION_SHARED_PTR_132_HPP -#define BOOST_SERIALIZATION_SHARED_PTR_132_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// shared_ptr.hpp: serialization for boost shared pointer - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -// note: totally unadvised hack to gain access to private variables -// in shared_ptr and shared_count. Unfortunately its the only way to -// do this without changing shared_ptr and shared_count -// the best we can do is to detect a conflict here -#include <boost/config.hpp> - -#include <list> -#include <cstddef> // NULL - -#include <boost/serialization/assume_abstract.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/tracking.hpp> -#include <boost/serialization/void_cast.hpp> - -// mark base class as an (uncreatable) base class -#include <boost/serialization/detail/shared_ptr_132.hpp> - -///////////////////////////////////////////////////////////// -// Maintain a couple of lists of loaded shared pointers of the old previous -// version (1.32) - -namespace boost_132 { -namespace serialization { -namespace detail { - -struct null_deleter { - void operator()(void const *) const {} -}; - -} // namespace detail -} // namespace serialization -} // namespace boost_132 - -///////////////////////////////////////////////////////////// -// sp_counted_base_impl serialization - -namespace boost { -namespace serialization { - -template<class Archive, class P, class D> -inline void serialize( - Archive & /* ar */, - boost_132::detail::sp_counted_base_impl<P, D> & /* t */, - const unsigned int /*file_version*/ -){ - // register the relationship between each derived class - // its polymorphic base - boost::serialization::void_cast_register< - boost_132::detail::sp_counted_base_impl<P, D>, - boost_132::detail::sp_counted_base - >( - static_cast<boost_132::detail::sp_counted_base_impl<P, D> *>(NULL), - static_cast<boost_132::detail::sp_counted_base *>(NULL) - ); -} - -template<class Archive, class P, class D> -inline void save_construct_data( - Archive & ar, - const - boost_132::detail::sp_counted_base_impl<P, D> *t, - const unsigned int /* file_version */ -){ - // variables used for construction - ar << boost::serialization::make_nvp("ptr", t->ptr); -} - -template<class Archive, class P, class D> -inline void load_construct_data( - Archive & ar, - boost_132::detail::sp_counted_base_impl<P, D> * t, - const unsigned int /* file_version */ -){ - P ptr_; - ar >> boost::serialization::make_nvp("ptr", ptr_); - // ::new(t)boost_132::detail::sp_counted_base_impl<P, D>(ptr_, D()); - // placement - // note: the original ::new... above is replaced by the one here. This one - // creates all new objects with a null_deleter so that after the archive - // is finished loading and the shared_ptrs are destroyed - the underlying - // raw pointers are NOT deleted. This is necessary as they are used by the - // new system as well. - ::new(t)boost_132::detail::sp_counted_base_impl< - P, - boost_132::serialization::detail::null_deleter - >( - ptr_, boost_132::serialization::detail::null_deleter() - ); // placement new - // compensate for that fact that a new shared count always is - // initialized with one. the add_ref_copy below will increment it - // every time its serialized so without this adjustment - // the use and weak counts will be off by one. - t->use_count_ = 0; -} - -} // serialization -} // namespace boost - -///////////////////////////////////////////////////////////// -// shared_count serialization - -namespace boost { -namespace serialization { - -template<class Archive> -inline void save( - Archive & ar, - const boost_132::detail::shared_count &t, - const unsigned int /* file_version */ -){ - ar << boost::serialization::make_nvp("pi", t.pi_); -} - -template<class Archive> -inline void load( - Archive & ar, - boost_132::detail::shared_count &t, - const unsigned int /* file_version */ -){ - ar >> boost::serialization::make_nvp("pi", t.pi_); - if(NULL != t.pi_) - t.pi_->add_ref_copy(); -} - -} // serialization -} // namespace boost - -BOOST_SERIALIZATION_SPLIT_FREE(boost_132::detail::shared_count) - -///////////////////////////////////////////////////////////// -// implement serialization for shared_ptr< T > - -namespace boost { -namespace serialization { - -template<class Archive, class T> -inline void save( - Archive & ar, - const boost_132::shared_ptr< T > &t, - const unsigned int /* file_version */ -){ - // only the raw pointer has to be saved - // the ref count is maintained automatically as shared pointers are loaded - ar.register_type(static_cast< - boost_132::detail::sp_counted_base_impl<T *, boost::checked_deleter< T > > * - >(NULL)); - ar << boost::serialization::make_nvp("px", t.px); - ar << boost::serialization::make_nvp("pn", t.pn); -} - -template<class Archive, class T> -inline void load( - Archive & ar, - boost_132::shared_ptr< T > &t, - const unsigned int /* file_version */ -){ - // only the raw pointer has to be saved - // the ref count is maintained automatically as shared pointers are loaded - ar.register_type(static_cast< - boost_132::detail::sp_counted_base_impl<T *, boost::checked_deleter< T > > * - >(NULL)); - ar >> boost::serialization::make_nvp("px", t.px); - ar >> boost::serialization::make_nvp("pn", t.pn); -} - -template<class Archive, class T> -inline void serialize( - Archive & ar, - boost_132::shared_ptr< T > &t, - const unsigned int file_version -){ - // correct shared_ptr serialization depends upon object tracking - // being used. - BOOST_STATIC_ASSERT( - boost::serialization::tracking_level< T >::value - != boost::serialization::track_never - ); - boost::serialization::split_free(ar, t, file_version); -} - -} // serialization -} // namespace boost - -// note: change below uses null_deleter -// This macro is used to export GUIDS for shared pointers to allow -// the serialization system to export them properly. David Tonge -#define BOOST_SHARED_POINTER_EXPORT_GUID(T, K) \ - typedef boost_132::detail::sp_counted_base_impl< \ - T *, \ - boost::checked_deleter< T > \ - > __shared_ptr_ ## T; \ - BOOST_CLASS_EXPORT_GUID(__shared_ptr_ ## T, "__shared_ptr_" K) \ - BOOST_CLASS_EXPORT_GUID(T, K) \ - /**/ - -#define BOOST_SHARED_POINTER_EXPORT(T) \ - BOOST_SHARED_POINTER_EXPORT_GUID( \ - T, \ - BOOST_PP_STRINGIZE(T) \ - ) \ - /**/ - -#endif // BOOST_SERIALIZATION_SHARED_PTR_132_HPP diff --git a/contrib/restricted/boost/boost/serialization/shared_ptr_helper.hpp b/contrib/restricted/boost/boost/serialization/shared_ptr_helper.hpp deleted file mode 100644 index 37c34d6b2c4..00000000000 --- a/contrib/restricted/boost/boost/serialization/shared_ptr_helper.hpp +++ /dev/null @@ -1,209 +0,0 @@ -#ifndef BOOST_SERIALIZATION_SHARED_PTR_HELPER_HPP -#define BOOST_SERIALIZATION_SHARED_PTR_HELPER_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// shared_ptr_helper.hpp: serialization for boost shared pointern - -// (C) Copyright 2004-2009 Robert Ramey, Martin Ecker and Takatoshi Kondo -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <map> -#include <list> -#include <utility> -#include <cstddef> // NULL - -#include <boost/config.hpp> -#include <boost/shared_ptr.hpp> -#include <boost/type_traits/is_polymorphic.hpp> -#include <boost/mpl/if.hpp> - -#include <boost/serialization/singleton.hpp> -#include <boost/serialization/extended_type_info.hpp> -#include <boost/serialization/throw_exception.hpp> -#include <boost/serialization/type_info_implementation.hpp> -#include <boost/archive/archive_exception.hpp> - -namespace boost_132 { - template<class T> class shared_ptr; -} -namespace boost { -namespace serialization { - -#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS -template<class Archive, template<class U> class SPT > -void load( - Archive & ar, - SPT< class U > &t, - const unsigned int file_version -); -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// a common class for holding various types of shared pointers - -template<template<class T> class SPT> -class shared_ptr_helper { - typedef std::map< - const void *, // address of object - SPT<const void> // address shared ptr to single instance - > object_shared_pointer_map; - - // list of shared_pointers create accessable by raw pointer. This - // is used to "match up" shared pointers loaded at different - // points in the archive. Note, we delay construction until - // it is actually used since this is by default included as - // a "mix-in" even if shared_ptr isn't used. - object_shared_pointer_map * m_o_sp; - - struct null_deleter { - void operator()(void const *) const {} - }; - -#if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) \ -|| defined(BOOST_MSVC) \ -|| defined(__SUNPRO_CC) -public: -#else - template<class Archive, class U> - friend void boost::serialization::load( - Archive & ar, - SPT< U > &t, - const unsigned int file_version - ); -#endif - - #ifdef BOOST_SERIALIZATION_SHARED_PTR_132_HPP - // list of loaded pointers. This is used to be sure that the pointers - // stay around long enough to be "matched" with other pointers loaded - // by the same archive. These are created with a "null_deleter" so that - // when this list is destroyed - the underlaying raw pointers are not - // destroyed. This has to be done because the pointers are also held by - // new system which is disjoint from this set. This is implemented - // by a change in load_construct_data below. It makes this file suitable - // only for loading pointers into a 1.33 or later boost system. - std::list<boost_132::shared_ptr<const void> > * m_pointers_132; - void - append(const boost_132::shared_ptr<const void> & t){ - if(NULL == m_pointers_132) - m_pointers_132 = new std::list<boost_132::shared_ptr<const void> >; - m_pointers_132->push_back(t); - } - #endif - - struct non_polymorphic { - template<class U> - static const boost::serialization::extended_type_info * - get_object_type(U & ){ - return & boost::serialization::singleton< - typename - boost::serialization::type_info_implementation< U >::type - >::get_const_instance(); - } - }; - struct polymorphic { - template<class U> - static const boost::serialization::extended_type_info * - get_object_type(U & u){ - return boost::serialization::singleton< - typename - boost::serialization::type_info_implementation< U >::type - >::get_const_instance().get_derived_extended_type_info(u); - } - }; - -public: - template<class T> - void reset(SPT< T > & s, T * t){ - if(NULL == t){ - s.reset(); - return; - } - const boost::serialization::extended_type_info * this_type - = & boost::serialization::type_info_implementation< T >::type - ::get_const_instance(); - - // get pointer to the most derived object's eti. This is effectively - // the object type identifer - typedef typename mpl::if_< - is_polymorphic< T >, - polymorphic, - non_polymorphic - >::type type; - - const boost::serialization::extended_type_info * true_type - = type::get_object_type(*t); - - // note:if this exception is thrown, be sure that derived pointern - // is either registered or exported. - if(NULL == true_type) - boost::serialization::throw_exception( - boost::archive::archive_exception( - boost::archive::archive_exception::unregistered_class, - this_type->get_debug_info() - ) - ); - // get void pointer to the most derived type - // this uniquely identifies the object referred to - // oid = "object identifier" - const void * oid = void_downcast( - *true_type, - *this_type, - t - ); - if(NULL == oid) - boost::serialization::throw_exception( - boost::archive::archive_exception( - boost::archive::archive_exception::unregistered_cast, - true_type->get_debug_info(), - this_type->get_debug_info() - ) - ); - - // make tracking array if necessary - if(NULL == m_o_sp) - m_o_sp = new object_shared_pointer_map; - - typename object_shared_pointer_map::iterator i = m_o_sp->find(oid); - - // if it's a new object - if(i == m_o_sp->end()){ - s.reset(t); - std::pair<typename object_shared_pointer_map::iterator, bool> result; - result = m_o_sp->insert(std::make_pair(oid, s)); - BOOST_ASSERT(result.second); - } - // if the object has already been seen - else{ - s = SPT<T>(i->second, t); - } - } - - shared_ptr_helper() : - m_o_sp(NULL) - #ifdef BOOST_SERIALIZATION_SHARED_PTR_132_HPP - , m_pointers_132(NULL) - #endif - {} - virtual ~shared_ptr_helper(){ - if(NULL != m_o_sp) - delete m_o_sp; - #ifdef BOOST_SERIALIZATION_SHARED_PTR_132_HPP - if(NULL != m_pointers_132) - delete m_pointers_132; - #endif - } -}; - -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_SHARED_PTR_HELPER_HPP diff --git a/contrib/restricted/boost/boost/serialization/slist.hpp b/contrib/restricted/boost/boost/serialization/slist.hpp deleted file mode 100644 index d9b971bc4f1..00000000000 --- a/contrib/restricted/boost/boost/serialization/slist.hpp +++ /dev/null @@ -1,145 +0,0 @@ -#ifndef BOOST_SERIALIZATION_SLIST_HPP -#define BOOST_SERIALIZATION_SLIST_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// slist.hpp - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> -#ifdef BOOST_HAS_SLIST -#include BOOST_SLIST_HEADER - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/collections_load_imp.hpp> -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/detail/stack_constructor.hpp> -#include <boost/serialization/detail/is_default_constructible.hpp> -#include <boost/move/utility_core.hpp> - -namespace boost { -namespace serialization { - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::stl::save_collection< - Archive, - BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator> - >(ar, t); -} - -namespace stl { - -template< - class Archive, - class T, - class Allocator -> -typename boost::disable_if< - typename detail::is_default_constructible< - typename BOOST_STD_EXTENSION_NAMESPACE::slist<T, Allocator>::value_type - >, - void ->::type -collection_load_impl( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::slist<T, Allocator> &t, - collection_size_type count, - item_version_type item_version -){ - t.clear(); - boost::serialization::detail::stack_construct<Archive, T> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - t.push_front(boost::move(u.reference())); - typename BOOST_STD_EXTENSION_NAMESPACE::slist<T, Allocator>::iterator last; - last = t.begin(); - ar.reset_object_address(&(*t.begin()) , & u.reference()); - while(--count > 0){ - detail::stack_construct<Archive, T> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - last = t.insert_after(last, boost::move(u.reference())); - ar.reset_object_address(&(*last) , & u.reference()); - } -} - -} // stl - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator> &t, - const unsigned int file_version -){ - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - if(detail::is_default_constructible<U>()){ - t.resize(count); - typename BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator>::iterator hint; - hint = t.begin(); - while(count-- > 0){ - ar >> boost::serialization::make_nvp("item", *hint++); - } - } - else{ - t.clear(); - boost::serialization::detail::stack_construct<Archive, U> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - t.push_front(boost::move(u.reference())); - typename BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator>::iterator last; - last = t.begin(); - ar.reset_object_address(&(*t.begin()) , & u.reference()); - while(--count > 0){ - detail::stack_construct<Archive, U> u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - last = t.insert_after(last, boost::move(u.reference())); - ar.reset_object_address(&(*last) , & u.reference()); - } - } -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class U, class Allocator> -inline void serialize( - Archive & ar, - BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(BOOST_STD_EXTENSION_NAMESPACE::slist) - -#endif // BOOST_HAS_SLIST -#endif // BOOST_SERIALIZATION_SLIST_HPP diff --git a/contrib/restricted/boost/boost/serialization/stack.hpp b/contrib/restricted/boost/boost/serialization/stack.hpp deleted file mode 100644 index 96f90fe8767..00000000000 --- a/contrib/restricted/boost/boost/serialization/stack.hpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef BOOST_SERIALIZATION_STACK_HPP -#define BOOST_SERIALIZATION_STACK_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// stack.hpp - -// (C) Copyright 2014 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <stack> -#include <boost/config.hpp> -#include <boost/mpl/eval_if.hpp> -#include <boost/mpl/identity.hpp> - -// function specializations must be defined in the appropriate -// namespace - boost::serialization -#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -#define STD _STLP_STD -#else -#define STD std -#endif - -namespace boost { -namespace serialization { -namespace detail{ - -template <typename U, typename C> -struct stack_save : public STD::stack<U, C> { - template<class Archive> - void operator()(Archive & ar, const unsigned int file_version) const { - save(ar, STD::stack<U, C>::c, file_version); - } -}; -template <typename U, typename C> -struct stack_load : public STD::stack<U, C> { - template<class Archive> - void operator()(Archive & ar, const unsigned int file_version) { - load(ar, STD::stack<U, C>::c, file_version); - } -}; - -} // detail - -template<class Archive, class T, class C> -inline void serialize( - Archive & ar, - std::stack< T, C> & t, - const unsigned int file_version -){ - typedef typename mpl::eval_if< - typename Archive::is_saving, - mpl::identity<detail::stack_save<T, C> >, - mpl::identity<detail::stack_load<T, C> > - >::type typex; - static_cast<typex &>(t)(ar, file_version); -} - -} // namespace serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(STD::stack) - -#undef STD - -#endif // BOOST_SERIALIZATION_DEQUE_HPP diff --git a/contrib/restricted/boost/boost/serialization/unique_ptr.hpp b/contrib/restricted/boost/boost/serialization/unique_ptr.hpp deleted file mode 100644 index 8d8703ef4f7..00000000000 --- a/contrib/restricted/boost/boost/serialization/unique_ptr.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef BOOST_SERIALIZATION_UNIQUE_PTR_HPP -#define BOOST_SERIALIZATION_UNIQUE_PTR_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// unique_ptr.hpp: - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// 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 http://www.boost.org for updates, documentation, and revision history. -#include <memory> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/nvp.hpp> - -namespace boost { -namespace serialization { - -///////////////////////////////////////////////////////////// -// implement serialization for unique_ptr< T > -// note: this must be added to the boost namespace in order to -// be called by the library -template<class Archive, class T> -inline void save( - Archive & ar, - const std::unique_ptr< T > &t, - const unsigned int /*file_version*/ -){ - // only the raw pointer has to be saved - // the ref count is rebuilt automatically on load - const T * const tx = t.get(); - ar << BOOST_SERIALIZATION_NVP(tx); -} - -template<class Archive, class T> -inline void load( - Archive & ar, - std::unique_ptr< T > &t, - const unsigned int /*file_version*/ -){ - T *tx; - ar >> BOOST_SERIALIZATION_NVP(tx); - // note that the reset automagically maintains the reference count - t.reset(tx); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class T> -inline void serialize( - Archive & ar, - std::unique_ptr< T > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - - -#endif // BOOST_SERIALIZATION_UNIQUE_PTR_HPP diff --git a/contrib/restricted/boost/boost/serialization/unordered_collections_load_imp.hpp b/contrib/restricted/boost/boost/serialization/unordered_collections_load_imp.hpp deleted file mode 100644 index d56a423d180..00000000000 --- a/contrib/restricted/boost/boost/serialization/unordered_collections_load_imp.hpp +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_LOAD_IMP_HPP -#define BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_LOAD_IMP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -# pragma warning (disable : 4786) // too long name, harmless warning -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// unordered_collections_load_imp.hpp: serialization for loading stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -// helper function templates for serialization of collections - -#include <boost/assert.hpp> -#include <cstddef> // size_t -#include <boost/config.hpp> // msvc 6.0 needs this for warning suppression -#if defined(BOOST_NO_STDC_NAMESPACE) -namespace std{ - using ::size_t; -} // namespace std -#endif -#include <boost/detail/workaround.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/access.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -namespace boost{ -namespace serialization { -namespace stl { - -////////////////////////////////////////////////////////////////////// -// implementation of serialization for STL containers -// -template<class Archive, class Container, class InputFunction> -inline void load_unordered_collection(Archive & ar, Container &s) -{ - collection_size_type count; - collection_size_type bucket_count; - boost::serialization::item_version_type item_version(0); - boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - ar >> BOOST_SERIALIZATION_NVP(count); - ar >> BOOST_SERIALIZATION_NVP(bucket_count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - s.clear(); - s.rehash(bucket_count); - InputFunction ifunc; - while(count-- > 0){ - ifunc(ar, s, item_version); - } -} - -} // namespace stl -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_LOAD_IMP_HPP diff --git a/contrib/restricted/boost/boost/serialization/unordered_collections_save_imp.hpp b/contrib/restricted/boost/boost/serialization/unordered_collections_save_imp.hpp deleted file mode 100644 index 56746ebeaa3..00000000000 --- a/contrib/restricted/boost/boost/serialization/unordered_collections_save_imp.hpp +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_SAVE_IMP_HPP -#define BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_SAVE_IMP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// hash_collections_save_imp.hpp: serialization for stl collections - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -// helper function templates for serialization of collections - -#include <boost/config.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/serialization.hpp> -#include <boost/serialization/version.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -namespace boost{ -namespace serialization { -namespace stl { - -////////////////////////////////////////////////////////////////////// -// implementation of serialization for STL containers -// - -template<class Archive, class Container> -inline void save_unordered_collection(Archive & ar, const Container &s) -{ - collection_size_type count(s.size()); - const collection_size_type bucket_count(s.bucket_count()); - const item_version_type item_version( - version<typename Container::value_type>::value - ); - - #if 0 - /* should only be necessary to create archives of previous versions - * which is not currently supported. So for now comment this out - */ - boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - ar << BOOST_SERIALIZATION_NVP(count); - ar << BOOST_SERIALIZATION_NVP(bucket_count); - if(boost::archive::library_version_type(3) < library_version){ - // record number of elements - // make sure the target type is registered so we can retrieve - // the version when we load - ar << BOOST_SERIALIZATION_NVP(item_version); - } - #else - ar << BOOST_SERIALIZATION_NVP(count); - ar << BOOST_SERIALIZATION_NVP(bucket_count); - ar << BOOST_SERIALIZATION_NVP(item_version); - #endif - - typename Container::const_iterator it = s.begin(); - while(count-- > 0){ - // note borland emits a no-op without the explicit namespace - boost::serialization::save_construct_data_adl( - ar, - &(*it), - boost::serialization::version< - typename Container::value_type - >::value - ); - ar << boost::serialization::make_nvp("item", *it++); - } -} - -} // namespace stl -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_UNORDERED_COLLECTIONS_SAVE_IMP_HPP diff --git a/contrib/restricted/boost/boost/serialization/unordered_map.hpp b/contrib/restricted/boost/boost/serialization/unordered_map.hpp deleted file mode 100644 index 4fdbddd7b65..00000000000 --- a/contrib/restricted/boost/boost/serialization/unordered_map.hpp +++ /dev/null @@ -1,160 +0,0 @@ -#ifndef BOOST_SERIALIZATION_UNORDERED_MAP_HPP -#define BOOST_SERIALIZATION_UNORDERED_MAP_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// serialization/unordered_map.hpp: -// serialization for stl unordered_map templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> - -#include <unordered_map> - -#include <boost/serialization/utility.hpp> -#include <boost/serialization/unordered_collections_save_imp.hpp> -#include <boost/serialization/unordered_collections_load_imp.hpp> -#include <boost/serialization/archive_input_unordered_map.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const std::unordered_map<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - std::unordered_map<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - std::unordered_map<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - std::unordered_map<Key, HashFcn, EqualKey, Allocator>, - boost::serialization::stl::archive_input_unordered_map< - Archive, - std::unordered_map<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - std::unordered_map<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -// unordered_multimap -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const std::unordered_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - std::unordered_multimap<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - std::unordered_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - std::unordered_multimap< - Key, HashFcn, EqualKey, Allocator - >, - boost::serialization::stl::archive_input_unordered_multimap< - Archive, - std::unordered_multimap<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - std::unordered_multimap< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_UNORDERED_MAP_HPP diff --git a/contrib/restricted/boost/boost/serialization/unordered_set.hpp b/contrib/restricted/boost/boost/serialization/unordered_set.hpp deleted file mode 100644 index adfee609cbe..00000000000 --- a/contrib/restricted/boost/boost/serialization/unordered_set.hpp +++ /dev/null @@ -1,162 +0,0 @@ -#ifndef BOOST_SERIALIZATION_UNORDERED_SET_HPP -#define BOOST_SERIALIZATION_UNORDERED_SET_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// unordered_set.hpp: serialization for stl unordered_set templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// (C) Copyright 2014 Jim Bell -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/config.hpp> - -#include <unordered_set> - -#include <boost/serialization/unordered_collections_save_imp.hpp> -#include <boost/serialization/unordered_collections_load_imp.hpp> -#include <boost/serialization/archive_input_unordered_set.hpp> -#include <boost/serialization/split_free.hpp> - -namespace boost { -namespace serialization { - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const std::unordered_set< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::save_unordered_collection< - Archive, - std::unordered_set<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - std::unordered_set< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - std::unordered_set<Key, HashFcn, EqualKey, Allocator>, - stl::archive_input_unordered_set< - Archive, - std::unordered_set< - Key, HashFcn, EqualKey, Allocator - > - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - std::unordered_set< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int file_version -){ - split_free(ar, t, file_version); -} - -// unordered_multiset -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void save( - Archive & ar, - const std::unordered_multiset< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - stl::save_unordered_collection< - Archive, - std::unordered_multiset<Key, HashFcn, EqualKey, Allocator> - >(ar, t); -} - -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void load( - Archive & ar, - std::unordered_multiset< - Key, HashFcn, EqualKey, Allocator - > &t, - const unsigned int /*file_version*/ -){ - boost::serialization::stl::load_unordered_collection< - Archive, - std::unordered_multiset<Key, HashFcn, EqualKey, Allocator>, - boost::serialization::stl::archive_input_unordered_multiset< - Archive, - std::unordered_multiset<Key, HashFcn, EqualKey, Allocator> - > - >(ar, t); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template< - class Archive, - class Key, - class HashFcn, - class EqualKey, - class Allocator -> -inline void serialize( - Archive & ar, - std::unordered_multiset<Key, HashFcn, EqualKey, Allocator> &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_SERIALIZATION_UNORDERED_SET_HPP diff --git a/contrib/restricted/boost/boost/serialization/valarray.hpp b/contrib/restricted/boost/boost/serialization/valarray.hpp deleted file mode 100644 index e7ec81a5695..00000000000 --- a/contrib/restricted/boost/boost/serialization/valarray.hpp +++ /dev/null @@ -1,87 +0,0 @@ -#ifndef BOOST_SERIALIZATION_VALARAY_HPP -#define BOOST_SERIALIZATION_VALARAY_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// valarray.hpp: serialization for stl vector templates - -// (C) Copyright 2005 Matthias Troyer . -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <valarray> -#include <boost/config.hpp> -#include <boost/core/addressof.hpp> - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/collections_load_imp.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/array_wrapper.hpp> - -// function specializations must be defined in the appropriate -// namespace - boost::serialization -#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -#define STD _STLP_STD -#else -#define STD std -#endif - -namespace boost { -namespace serialization { - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// valarray< T > - -template<class Archive, class U> -void save( Archive & ar, const STD::valarray<U> &t, const unsigned int /*file_version*/ ) -{ - const collection_size_type count(t.size()); - ar << BOOST_SERIALIZATION_NVP(count); - if (t.size()){ - // explict template arguments to pass intel C++ compiler - ar << serialization::make_array<const U, collection_size_type>( - static_cast<const U *>( boost::addressof(t[0]) ), - count - ); - } -} - -template<class Archive, class U> -void load( Archive & ar, STD::valarray<U> &t, const unsigned int /*file_version*/ ) -{ - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - t.resize(count); - if (t.size()){ - // explict template arguments to pass intel C++ compiler - ar >> serialization::make_array<U, collection_size_type>( - static_cast<U *>( boost::addressof(t[0]) ), - count - ); - } -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class U> -inline void serialize( Archive & ar, STD::valarray<U> & t, const unsigned int file_version) -{ - boost::serialization::split_free(ar, t, file_version); -} - -} } // end namespace boost::serialization - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(STD::valarray) -#undef STD - -#endif // BOOST_SERIALIZATION_VALARAY_HPP diff --git a/contrib/restricted/boost/boost/serialization/variant.hpp b/contrib/restricted/boost/boost/serialization/variant.hpp deleted file mode 100644 index dce6f3d49e7..00000000000 --- a/contrib/restricted/boost/boost/serialization/variant.hpp +++ /dev/null @@ -1,158 +0,0 @@ -#ifndef BOOST_SERIALIZATION_VARIANT_HPP -#define BOOST_SERIALIZATION_VARIANT_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// variant.hpp - non-intrusive serialization of variant types -// -// copyright (c) 2005 -// troy d. straszheim <troy@resophonic.com> -// http://www.resophonic.com -// -// 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 http://www.boost.org for updates, documentation, and revision history. -// -// thanks to Robert Ramey, Peter Dimov, and Richard Crossley. -// - -#include <boost/mpl/front.hpp> -#include <boost/mpl/pop_front.hpp> -#include <boost/mpl/eval_if.hpp> -#include <boost/mpl/identity.hpp> -#include <boost/mpl/size.hpp> -#include <boost/mpl/empty.hpp> - -#include <boost/serialization/throw_exception.hpp> - -#include <boost/variant.hpp> - -#include <boost/archive/archive_exception.hpp> - -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/serialization.hpp> -#include <boost/serialization/nvp.hpp> - -namespace boost { -namespace serialization { - -template<class Archive> -struct variant_save_visitor : - boost::static_visitor<> -{ - variant_save_visitor(Archive& ar) : - m_ar(ar) - {} - template<class T> - void operator()(T const & value) const - { - m_ar << BOOST_SERIALIZATION_NVP(value); - } -private: - Archive & m_ar; -}; - -template<class Archive, BOOST_VARIANT_ENUM_PARAMS(/* typename */ class T)> -void save( - Archive & ar, - boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> const & v, - unsigned int /*version*/ -){ - int which = v.which(); - ar << BOOST_SERIALIZATION_NVP(which); - variant_save_visitor<Archive> visitor(ar); - v.apply_visitor(visitor); -} - -template<class S> -struct variant_impl { - - struct load_null { - template<class Archive, class V> - static void invoke( - Archive & /*ar*/, - int /*which*/, - V & /*v*/, - const unsigned int /*version*/ - ){} - }; - - struct load_impl { - template<class Archive, class V> - static void invoke( - Archive & ar, - int which, - V & v, - const unsigned int version - ){ - if(which == 0){ - // note: A non-intrusive implementation (such as this one) - // necessary has to copy the value. This wouldn't be necessary - // with an implementation that de-serialized to the address of the - // aligned storage included in the variant. - typedef typename mpl::front<S>::type head_type; - head_type value; - ar >> BOOST_SERIALIZATION_NVP(value); - v = value; - ar.reset_object_address(& boost::get<head_type>(v), & value); - return; - } - typedef typename mpl::pop_front<S>::type type; - variant_impl<type>::load(ar, which - 1, v, version); - } - }; - - template<class Archive, class V> - static void load( - Archive & ar, - int which, - V & v, - const unsigned int version - ){ - typedef typename mpl::eval_if<mpl::empty<S>, - mpl::identity<load_null>, - mpl::identity<load_impl> - >::type typex; - typex::invoke(ar, which, v, version); - } - -}; - -template<class Archive, BOOST_VARIANT_ENUM_PARAMS(/* typename */ class T)> -void load( - Archive & ar, - boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>& v, - const unsigned int version -){ - int which; - typedef typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::types types; - ar >> BOOST_SERIALIZATION_NVP(which); - if(which >= mpl::size<types>::value) - // this might happen if a type was removed from the list of variant types - boost::serialization::throw_exception( - boost::archive::archive_exception( - boost::archive::archive_exception::unsupported_version - ) - ); - variant_impl<types>::load(ar, which, v, version); -} - -template<class Archive,BOOST_VARIANT_ENUM_PARAMS(/* typename */ class T)> -inline void serialize( - Archive & ar, - boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> & v, - const unsigned int file_version -){ - split_free(ar,v,file_version); -} - -} // namespace serialization -} // namespace boost - -#endif //BOOST_SERIALIZATION_VARIANT_HPP diff --git a/contrib/restricted/boost/boost/serialization/vector.hpp b/contrib/restricted/boost/boost/serialization/vector.hpp deleted file mode 100644 index 9a114c00e20..00000000000 --- a/contrib/restricted/boost/boost/serialization/vector.hpp +++ /dev/null @@ -1,233 +0,0 @@ -#ifndef BOOST_SERIALIZATION_VECTOR_HPP -#define BOOST_SERIALIZATION_VECTOR_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// vector.hpp: serialization for stl vector templates - -// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . -// fast array serialization (C) Copyright 2005 Matthias Troyer -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <vector> - -#include <boost/config.hpp> -#include <boost/detail/workaround.hpp> - -#include <boost/archive/detail/basic_iarchive.hpp> -#include <boost/serialization/access.hpp> -#include <boost/serialization/nvp.hpp> -#include <boost/serialization/collection_size_type.hpp> -#include <boost/serialization/item_version_type.hpp> - -#include <boost/serialization/collections_save_imp.hpp> -#include <boost/serialization/collections_load_imp.hpp> -#include <boost/serialization/split_free.hpp> -#include <boost/serialization/array_wrapper.hpp> -#include <boost/mpl/bool_fwd.hpp> -#include <boost/mpl/if.hpp> - -// default is being compatible with version 1.34.1 files, not 1.35 files -#ifndef BOOST_SERIALIZATION_VECTOR_VERSIONED -#define BOOST_SERIALIZATION_VECTOR_VERSIONED(V) (V==4 || V==5) -#endif - -// function specializations must be defined in the appropriate -// namespace - boost::serialization -#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -#define STD _STLP_STD -#else -#define STD std -#endif - -namespace boost { -namespace serialization { - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// vector< T > - -// the default versions - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const std::vector<U, Allocator> &t, - const unsigned int /* file_version */, - mpl::false_ -){ - boost::serialization::stl::save_collection<Archive, STD::vector<U, Allocator> >( - ar, t - ); -} - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - std::vector<U, Allocator> &t, - const unsigned int /* file_version */, - mpl::false_ -){ - const boost::archive::library_version_type library_version( - ar.get_library_version() - ); - // retrieve number of elements - item_version_type item_version(0); - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - if(boost::archive::library_version_type(3) < library_version){ - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - t.reserve(count); - stl::collection_load_impl(ar, t, count, item_version); -} - -// the optimized versions - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const std::vector<U, Allocator> &t, - const unsigned int /* file_version */, - mpl::true_ -){ - const collection_size_type count(t.size()); - ar << BOOST_SERIALIZATION_NVP(count); - if (!t.empty()) - // explict template arguments to pass intel C++ compiler - ar << serialization::make_array<const U, collection_size_type>( - static_cast<const U *>(&t[0]), - count - ); -} - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - std::vector<U, Allocator> &t, - const unsigned int /* file_version */, - mpl::true_ -){ - collection_size_type count(t.size()); - ar >> BOOST_SERIALIZATION_NVP(count); - t.resize(count); - unsigned int item_version=0; - if(BOOST_SERIALIZATION_VECTOR_VERSIONED(ar.get_library_version())) { - ar >> BOOST_SERIALIZATION_NVP(item_version); - } - if (!t.empty()) - // explict template arguments to pass intel C++ compiler - ar >> serialization::make_array<U, collection_size_type>( - static_cast<U *>(&t[0]), - count - ); - } - -// dispatch to either default or optimized versions - -template<class Archive, class U, class Allocator> -inline void save( - Archive & ar, - const std::vector<U, Allocator> &t, - const unsigned int file_version -){ - typedef typename - boost::serialization::use_array_optimization<Archive>::template apply< - typename remove_const<U>::type - >::type use_optimized; - save(ar,t,file_version, use_optimized()); -} - -template<class Archive, class U, class Allocator> -inline void load( - Archive & ar, - std::vector<U, Allocator> &t, - const unsigned int file_version -){ -#ifdef BOOST_SERIALIZATION_VECTOR_135_HPP - if (ar.get_library_version()==boost::archive::library_version_type(5)) - { - load(ar,t,file_version, boost::is_arithmetic<U>()); - return; - } -#endif - typedef typename - boost::serialization::use_array_optimization<Archive>::template apply< - typename remove_const<U>::type - >::type use_optimized; - load(ar,t,file_version, use_optimized()); -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class U, class Allocator> -inline void serialize( - Archive & ar, - std::vector<U, Allocator> & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// vector<bool> -template<class Archive, class Allocator> -inline void save( - Archive & ar, - const std::vector<bool, Allocator> &t, - const unsigned int /* file_version */ -){ - // record number of elements - collection_size_type count (t.size()); - ar << BOOST_SERIALIZATION_NVP(count); - std::vector<bool>::const_iterator it = t.begin(); - while(count-- > 0){ - bool tb = *it++; - ar << boost::serialization::make_nvp("item", tb); - } -} - -template<class Archive, class Allocator> -inline void load( - Archive & ar, - std::vector<bool, Allocator> &t, - const unsigned int /* file_version */ -){ - // retrieve number of elements - collection_size_type count; - ar >> BOOST_SERIALIZATION_NVP(count); - t.resize(count); - for(collection_size_type i = collection_size_type(0); i < count; ++i){ - bool b; - ar >> boost::serialization::make_nvp("item", b); - t[i] = b; - } -} - -// split non-intrusive serialization function member into separate -// non intrusive save/load member functions -template<class Archive, class Allocator> -inline void serialize( - Archive & ar, - std::vector<bool, Allocator> & t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // serialization -} // namespace boost - -#include <boost/serialization/collection_traits.hpp> - -BOOST_SERIALIZATION_COLLECTION_TRAITS(std::vector) -#undef STD - -#endif // BOOST_SERIALIZATION_VECTOR_HPP diff --git a/contrib/restricted/boost/boost/serialization/vector_135.hpp b/contrib/restricted/boost/boost/serialization/vector_135.hpp deleted file mode 100644 index fd1a7393d1b..00000000000 --- a/contrib/restricted/boost/boost/serialization/vector_135.hpp +++ /dev/null @@ -1,26 +0,0 @@ -////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// vector_135.hpp: serialization for stl vector templates for compatibility -// with release 1.35, which had a bug - -// (C) Copyright 2008 Matthias Troyer -// 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 http://www.boost.org for updates, documentation, and revision history. - - -#ifndef BOOST_SERIALIZATION_VECTOR_135_HPP -#define BOOST_SERIALIZATION_VECTOR_135_HPP - -#ifdef BOOST_SERIALIZATION_VECTOR_VERSIONED -#if BOOST_SERIALIZATION_VECTOR_VERSION != 4 -#error "Boost.Serialization cannot be compatible with both 1.35 and 1.36-1.40 files" -#endif -#else -#define BOOST_SERIALIZATION_VECTOR_VERSIONED(V) (V>4) -#endif - -#include <boost/serialization/vector.hpp> - -#endif // BOOST_SERIALIZATION_VECTOR_135_HPP diff --git a/contrib/restricted/boost/boost/serialization/weak_ptr.hpp b/contrib/restricted/boost/boost/serialization/weak_ptr.hpp deleted file mode 100644 index 6952d24cb37..00000000000 --- a/contrib/restricted/boost/boost/serialization/weak_ptr.hpp +++ /dev/null @@ -1,99 +0,0 @@ -#ifndef BOOST_SERIALIZATION_WEAK_PTR_HPP -#define BOOST_SERIALIZATION_WEAK_PTR_HPP - -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) -# pragma once -#endif - -/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 -// weak_ptr.hpp: serialization for boost weak pointer - -// (C) Copyright 2004 Robert Ramey and Martin Ecker -// 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 http://www.boost.org for updates, documentation, and revision history. - -#include <boost/weak_ptr.hpp> -#include <boost/serialization/shared_ptr.hpp> - -namespace boost { -namespace serialization{ - -template<class Archive, class T> -inline void save( - Archive & ar, - const boost::weak_ptr< T > &t, - const unsigned int /* file_version */ -){ - const boost::shared_ptr< T > sp = t.lock(); - ar << boost::serialization::make_nvp("weak_ptr", sp); -} - -template<class Archive, class T> -inline void load( - Archive & ar, - boost::weak_ptr< T > &t, - const unsigned int /* file_version */ -){ - boost::shared_ptr< T > sp; - ar >> boost::serialization::make_nvp("weak_ptr", sp); - t = sp; -} - -template<class Archive, class T> -inline void serialize( - Archive & ar, - boost::weak_ptr< T > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#ifndef BOOST_NO_CXX11_SMART_PTR -#include <memory> - -namespace boost { -namespace serialization{ - -template<class Archive, class T> -inline void save( - Archive & ar, - const std::weak_ptr< T > &t, - const unsigned int /* file_version */ -){ - const std::shared_ptr< T > sp = t.lock(); - ar << boost::serialization::make_nvp("weak_ptr", sp); -} - -template<class Archive, class T> -inline void load( - Archive & ar, - std::weak_ptr< T > &t, - const unsigned int /* file_version */ -){ - std::shared_ptr< T > sp; - ar >> boost::serialization::make_nvp("weak_ptr", sp); - t = sp; -} - -template<class Archive, class T> -inline void serialize( - Archive & ar, - std::weak_ptr< T > &t, - const unsigned int file_version -){ - boost::serialization::split_free(ar, t, file_version); -} - -} // namespace serialization -} // namespace boost - -#endif // BOOST_NO_CXX11_SMART_PTR - -#endif // BOOST_SERIALIZATION_WEAK_PTR_HPP diff --git a/contrib/restricted/boost/libs/CMakeLists.txt b/contrib/restricted/boost/libs/CMakeLists.txt index 9b6a0f564ea..fb46cf09731 100644 --- a/contrib/restricted/boost/libs/CMakeLists.txt +++ b/contrib/restricted/boost/libs/CMakeLists.txt @@ -7,3 +7,4 @@ add_subdirectory(graph) +add_subdirectory(multi_index) diff --git a/contrib/restricted/boost/libs/graph/CMakeLists.txt b/contrib/restricted/boost/libs/graph/CMakeLists.txt index a3493d815d1..39f1d9338de 100644 --- a/contrib/restricted/boost/libs/graph/CMakeLists.txt +++ b/contrib/restricted/boost/libs/graph/CMakeLists.txt @@ -14,6 +14,7 @@ target_link_libraries(boost-libs-graph INTERFACE restricted-boost-atomic restricted-boost-exception restricted-boost-filesystem + restricted-boost-serialization restricted-boost-spirit restricted-boost-thread ) diff --git a/contrib/restricted/boost/libs/multi_index/CMakeLists.txt b/contrib/restricted/boost/libs/multi_index/CMakeLists.txt new file mode 100644 index 00000000000..2203ce42819 --- /dev/null +++ b/contrib/restricted/boost/libs/multi_index/CMakeLists.txt @@ -0,0 +1,15 @@ + +# 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(boost-libs-multi_index INTERFACE) +target_link_libraries(boost-libs-multi_index INTERFACE + contrib-libs-cxxsupp + contrib-restricted-boost + restricted-boost-serialization +) diff --git a/contrib/restricted/boost/serialization/CMakeLists.txt b/contrib/restricted/boost/serialization/CMakeLists.txt new file mode 100644 index 00000000000..95bae972c57 --- /dev/null +++ b/contrib/restricted/boost/serialization/CMakeLists.txt @@ -0,0 +1,80 @@ + +# 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-serialization) +target_compile_options(restricted-boost-serialization PRIVATE + -Wno-everything +) +target_include_directories(restricted-boost-serialization PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/include +) +target_link_libraries(restricted-boost-serialization PUBLIC + contrib-libs-cxxsupp + restricted-boost-array + restricted-boost-assert + restricted-boost-config + restricted-boost-core + restricted-boost-detail + restricted-boost-function + restricted-boost-integer + restricted-boost-io + restricted-boost-iterator + restricted-boost-move + restricted-boost-mpl + restricted-boost-optional + restricted-boost-predef + restricted-boost-preprocessor + restricted-boost-smart_ptr + restricted-boost-spirit + restricted-boost-static_assert + restricted-boost-type_traits + restricted-boost-unordered + restricted-boost-utility + restricted-boost-variant +) +target_sources(restricted-boost-serialization PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/archive_exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_archive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_iarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_iserializer.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_oarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_oserializer.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_pointer_iserializer.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_pointer_oserializer.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_serializer_map.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_text_iprimitive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_text_oprimitive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_text_wiprimitive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_text_woprimitive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/basic_xml_archive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/binary_iarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/binary_oarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/binary_wiarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/binary_woarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/codecvt_null.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/extended_type_info.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/extended_type_info_no_rtti.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/extended_type_info_typeid.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/polymorphic_iarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/polymorphic_oarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/stl_port.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/text_iarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/text_oarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/text_wiarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/text_woarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/utf8_codecvt_facet.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/void_cast.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_archive_exception.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_grammar.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_iarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_oarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_wgrammar.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_wiarchive.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/serialization/src/xml_woarchive.cpp +) diff --git a/contrib/restricted/boost/boost/archive/archive_exception.hpp b/contrib/restricted/boost/serialization/include/boost/archive/archive_exception.hpp index fabcdb5fa71..fabcdb5fa71 100644 --- a/contrib/restricted/boost/boost/archive/archive_exception.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/archive_exception.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_archive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_archive.hpp index 9283974ff10..9283974ff10 100644 --- a/contrib/restricted/boost/boost/archive/basic_archive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_archive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_binary_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_iarchive.hpp index c0cc655c997..c0cc655c997 100644 --- a/contrib/restricted/boost/boost/archive/basic_binary_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_binary_iprimitive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_iprimitive.hpp index 665d3e81e1f..665d3e81e1f 100644 --- a/contrib/restricted/boost/boost/archive/basic_binary_iprimitive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_iprimitive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_binary_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_oarchive.hpp index f05f2f86d55..f05f2f86d55 100644 --- a/contrib/restricted/boost/boost/archive/basic_binary_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_binary_oprimitive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_oprimitive.hpp index 6dc770c60e8..6dc770c60e8 100644 --- a/contrib/restricted/boost/boost/archive/basic_binary_oprimitive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_binary_oprimitive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_streambuf_locale_saver.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_streambuf_locale_saver.hpp index 5cd4b36f081..5cd4b36f081 100644 --- a/contrib/restricted/boost/boost/archive/basic_streambuf_locale_saver.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_streambuf_locale_saver.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_text_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_iarchive.hpp index 48a646cc1f7..48a646cc1f7 100644 --- a/contrib/restricted/boost/boost/archive/basic_text_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_text_iprimitive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_iprimitive.hpp index bf936b55546..bf936b55546 100644 --- a/contrib/restricted/boost/boost/archive/basic_text_iprimitive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_iprimitive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_text_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_oarchive.hpp index 6f7f8fb167d..6f7f8fb167d 100644 --- a/contrib/restricted/boost/boost/archive/basic_text_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_text_oprimitive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_oprimitive.hpp index 047019b13e3..047019b13e3 100644 --- a/contrib/restricted/boost/boost/archive/basic_text_oprimitive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_text_oprimitive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_xml_archive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_xml_archive.hpp index bef368b973b..bef368b973b 100644 --- a/contrib/restricted/boost/boost/archive/basic_xml_archive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_xml_archive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_xml_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_xml_iarchive.hpp index e9f7482f744..e9f7482f744 100644 --- a/contrib/restricted/boost/boost/archive/basic_xml_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_xml_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/basic_xml_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/basic_xml_oarchive.hpp index 107fca4ec65..107fca4ec65 100644 --- a/contrib/restricted/boost/boost/archive/basic_xml_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/basic_xml_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/binary_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/binary_iarchive.hpp index 785ce7610b1..785ce7610b1 100644 --- a/contrib/restricted/boost/boost/archive/binary_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/binary_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/binary_iarchive_impl.hpp b/contrib/restricted/boost/serialization/include/boost/archive/binary_iarchive_impl.hpp index b4747c98ece..b4747c98ece 100644 --- a/contrib/restricted/boost/boost/archive/binary_iarchive_impl.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/binary_iarchive_impl.hpp diff --git a/contrib/restricted/boost/boost/archive/binary_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/binary_oarchive.hpp index e8313fd7c95..e8313fd7c95 100644 --- a/contrib/restricted/boost/boost/archive/binary_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/binary_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/binary_oarchive_impl.hpp b/contrib/restricted/boost/serialization/include/boost/archive/binary_oarchive_impl.hpp index 6b4d018a564..6b4d018a564 100644 --- a/contrib/restricted/boost/boost/archive/binary_oarchive_impl.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/binary_oarchive_impl.hpp diff --git a/contrib/restricted/boost/boost/archive/binary_wiarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/binary_wiarchive.hpp index 775d8f82726..775d8f82726 100644 --- a/contrib/restricted/boost/boost/archive/binary_wiarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/binary_wiarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/binary_woarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/binary_woarchive.hpp index a8817d6f8b4..a8817d6f8b4 100644 --- a/contrib/restricted/boost/boost/archive/binary_woarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/binary_woarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/codecvt_null.hpp b/contrib/restricted/boost/serialization/include/boost/archive/codecvt_null.hpp index 3d9a2dea92b..3d9a2dea92b 100644 --- a/contrib/restricted/boost/boost/archive/codecvt_null.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/codecvt_null.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/abi_prefix.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/abi_prefix.hpp index debf79e9f0b..debf79e9f0b 100644 --- a/contrib/restricted/boost/boost/archive/detail/abi_prefix.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/abi_prefix.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/abi_suffix.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/abi_suffix.hpp index 4e054d66214..4e054d66214 100644 --- a/contrib/restricted/boost/boost/archive/detail/abi_suffix.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/abi_suffix.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/archive_serializer_map.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/archive_serializer_map.hpp index 5432bfc73e7..5432bfc73e7 100644 --- a/contrib/restricted/boost/boost/archive/detail/archive_serializer_map.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/archive_serializer_map.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/auto_link_archive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/auto_link_archive.hpp index 79b0e490d65..79b0e490d65 100644 --- a/contrib/restricted/boost/boost/archive/detail/auto_link_archive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/auto_link_archive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/auto_link_warchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/auto_link_warchive.hpp index 683d191c20d..683d191c20d 100644 --- a/contrib/restricted/boost/boost/archive/detail/auto_link_warchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/auto_link_warchive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_iarchive.hpp index 1f5a8bf63bf..1f5a8bf63bf 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_iserializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_iserializer.hpp index 0d66674c349..0d66674c349 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_iserializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_iserializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_oarchive.hpp index c379108d584..c379108d584 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_oserializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_oserializer.hpp index 94247e90056..94247e90056 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_oserializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_oserializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_pointer_iserializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_pointer_iserializer.hpp index 1fc4b14d6e9..1fc4b14d6e9 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_pointer_iserializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_pointer_iserializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_pointer_oserializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_pointer_oserializer.hpp index 1a5d9549eab..1a5d9549eab 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_pointer_oserializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_pointer_oserializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_serializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_serializer.hpp index f9c4203f862..f9c4203f862 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_serializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_serializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/basic_serializer_map.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_serializer_map.hpp index 79341803367..79341803367 100644 --- a/contrib/restricted/boost/boost/archive/detail/basic_serializer_map.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/basic_serializer_map.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/check.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/check.hpp index 10034e7d101..10034e7d101 100644 --- a/contrib/restricted/boost/boost/archive/detail/check.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/check.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/common_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/common_iarchive.hpp index 4176a8a5ef1..4176a8a5ef1 100644 --- a/contrib/restricted/boost/boost/archive/detail/common_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/common_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/common_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/common_oarchive.hpp index f7428637e42..f7428637e42 100644 --- a/contrib/restricted/boost/boost/archive/detail/common_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/common_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/decl.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/decl.hpp index 4f731cded37..4f731cded37 100644 --- a/contrib/restricted/boost/boost/archive/detail/decl.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/decl.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/helper_collection.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/helper_collection.hpp index edb4125e308..edb4125e308 100644 --- a/contrib/restricted/boost/boost/archive/detail/helper_collection.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/helper_collection.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/interface_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/interface_iarchive.hpp index e9b24cac77f..4a99e28b59f 100644 --- a/contrib/restricted/boost/boost/archive/detail/interface_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/interface_iarchive.hpp @@ -1,10 +1,6 @@ #ifndef BOOST_ARCHIVE_DETAIL_INTERFACE_IARCHIVE_HPP #define BOOST_ARCHIVE_DETAIL_INTERFACE_IARCHIVE_HPP -#if defined(__GNUC__) - #pragma GCC system_header -#endif - // MS compatible compilers support #pragma once #if defined(_MSC_VER) # pragma once diff --git a/contrib/restricted/boost/boost/archive/detail/interface_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/interface_oarchive.hpp index 359463ed9d8..359463ed9d8 100644 --- a/contrib/restricted/boost/boost/archive/detail/interface_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/interface_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/iserializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/iserializer.hpp index 6c2fd67ddd0..6c2fd67ddd0 100644 --- a/contrib/restricted/boost/boost/archive/detail/iserializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/iserializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/oserializer.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/oserializer.hpp index 612e1f2cb16..612e1f2cb16 100644 --- a/contrib/restricted/boost/boost/archive/detail/oserializer.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/oserializer.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/register_archive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/register_archive.hpp index 5ffecc702ce..5ffecc702ce 100644 --- a/contrib/restricted/boost/boost/archive/detail/register_archive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/register_archive.hpp diff --git a/contrib/restricted/boost/boost/archive/detail/utf8_codecvt_facet.hpp b/contrib/restricted/boost/serialization/include/boost/archive/detail/utf8_codecvt_facet.hpp index 00b2b4193d3..00b2b4193d3 100644 --- a/contrib/restricted/boost/boost/archive/detail/utf8_codecvt_facet.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/detail/utf8_codecvt_facet.hpp diff --git a/contrib/restricted/boost/boost/archive/dinkumware.hpp b/contrib/restricted/boost/serialization/include/boost/archive/dinkumware.hpp index 90ba6271cdd..90ba6271cdd 100644 --- a/contrib/restricted/boost/boost/archive/dinkumware.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/dinkumware.hpp diff --git a/contrib/restricted/boost/boost/archive/impl/archive_serializer_map.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/archive_serializer_map.ipp index 7f163ec4076..7f163ec4076 100644 --- a/contrib/restricted/boost/boost/archive/impl/archive_serializer_map.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/archive_serializer_map.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_binary_iarchive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_iarchive.ipp index d5619ab6cf3..d5619ab6cf3 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_binary_iarchive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_iarchive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_binary_iprimitive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_iprimitive.ipp index e2d051080e7..e2d051080e7 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_binary_iprimitive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_iprimitive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_binary_oarchive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_oarchive.ipp index d5a019d32bc..d5a019d32bc 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_binary_oarchive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_oarchive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_binary_oprimitive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_oprimitive.ipp index 7b042173a48..7b042173a48 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_binary_oprimitive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_binary_oprimitive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_text_iarchive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_iarchive.ipp index 9ec8c6588c8..9ec8c6588c8 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_text_iarchive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_iarchive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_text_iprimitive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_iprimitive.ipp index 4e44728068d..4e44728068d 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_text_iprimitive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_iprimitive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_text_oarchive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_oarchive.ipp index 44bc1401fd6..44bc1401fd6 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_text_oarchive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_oarchive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_text_oprimitive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_oprimitive.ipp index 6030fd44c57..6030fd44c57 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_text_oprimitive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_text_oprimitive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_xml_grammar.hpp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_xml_grammar.hpp index 6d4e4683f6a..6d4e4683f6a 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_xml_grammar.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_xml_grammar.hpp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_xml_iarchive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_xml_iarchive.ipp index 625458b9eb5..625458b9eb5 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_xml_iarchive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_xml_iarchive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/basic_xml_oarchive.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_xml_oarchive.ipp index 3184413f382..3184413f382 100644 --- a/contrib/restricted/boost/boost/archive/impl/basic_xml_oarchive.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/basic_xml_oarchive.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/text_iarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_iarchive_impl.ipp index ae4e2750ce8..ae4e2750ce8 100644 --- a/contrib/restricted/boost/boost/archive/impl/text_iarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_iarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/text_oarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_oarchive_impl.ipp index 37d8664a98c..37d8664a98c 100644 --- a/contrib/restricted/boost/boost/archive/impl/text_oarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_oarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/text_wiarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_wiarchive_impl.ipp index e85625ac326..e85625ac326 100644 --- a/contrib/restricted/boost/boost/archive/impl/text_wiarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_wiarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/text_woarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_woarchive_impl.ipp index 2b6d427cd3a..2b6d427cd3a 100644 --- a/contrib/restricted/boost/boost/archive/impl/text_woarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/text_woarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/xml_iarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_iarchive_impl.ipp index efc32e01632..efc32e01632 100644 --- a/contrib/restricted/boost/boost/archive/impl/xml_iarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_iarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/xml_oarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_oarchive_impl.ipp index 5ebd454e722..5ebd454e722 100644 --- a/contrib/restricted/boost/boost/archive/impl/xml_oarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_oarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/xml_wiarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_wiarchive_impl.ipp index f572b76220e..f572b76220e 100644 --- a/contrib/restricted/boost/boost/archive/impl/xml_wiarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_wiarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/impl/xml_woarchive_impl.ipp b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_woarchive_impl.ipp index 630898b86a0..630898b86a0 100644 --- a/contrib/restricted/boost/boost/archive/impl/xml_woarchive_impl.ipp +++ b/contrib/restricted/boost/serialization/include/boost/archive/impl/xml_woarchive_impl.ipp diff --git a/contrib/restricted/boost/boost/archive/iterators/base64_from_binary.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/base64_from_binary.hpp index ee849944397..ee849944397 100644 --- a/contrib/restricted/boost/boost/archive/iterators/base64_from_binary.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/base64_from_binary.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/binary_from_base64.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/binary_from_base64.hpp index 89b8f889da3..89b8f889da3 100644 --- a/contrib/restricted/boost/boost/archive/iterators/binary_from_base64.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/binary_from_base64.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/dataflow_exception.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/dataflow_exception.hpp index c3138aac7e0..c3138aac7e0 100644 --- a/contrib/restricted/boost/boost/archive/iterators/dataflow_exception.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/dataflow_exception.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/escape.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/escape.hpp index 103b31e0fef..103b31e0fef 100644 --- a/contrib/restricted/boost/boost/archive/iterators/escape.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/escape.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/insert_linebreaks.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/insert_linebreaks.hpp index 2504b030db1..2504b030db1 100644 --- a/contrib/restricted/boost/boost/archive/iterators/insert_linebreaks.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/insert_linebreaks.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/istream_iterator.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/istream_iterator.hpp index a187f605e69..a187f605e69 100644 --- a/contrib/restricted/boost/boost/archive/iterators/istream_iterator.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/istream_iterator.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/mb_from_wchar.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/mb_from_wchar.hpp index eb30480cc03..eb30480cc03 100644 --- a/contrib/restricted/boost/boost/archive/iterators/mb_from_wchar.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/mb_from_wchar.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/ostream_iterator.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/ostream_iterator.hpp index 49a9b99034b..49a9b99034b 100644 --- a/contrib/restricted/boost/boost/archive/iterators/ostream_iterator.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/ostream_iterator.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/remove_whitespace.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/remove_whitespace.hpp index c3580ab258a..c3580ab258a 100644 --- a/contrib/restricted/boost/boost/archive/iterators/remove_whitespace.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/remove_whitespace.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/transform_width.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/transform_width.hpp index 09c050a9274..09c050a9274 100644 --- a/contrib/restricted/boost/boost/archive/iterators/transform_width.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/transform_width.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/unescape.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/unescape.hpp index abf62406088..abf62406088 100644 --- a/contrib/restricted/boost/boost/archive/iterators/unescape.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/unescape.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/wchar_from_mb.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/wchar_from_mb.hpp index 2af8f6401f2..2af8f6401f2 100644 --- a/contrib/restricted/boost/boost/archive/iterators/wchar_from_mb.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/wchar_from_mb.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/xml_escape.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/xml_escape.hpp index c838a73b864..c838a73b864 100644 --- a/contrib/restricted/boost/boost/archive/iterators/xml_escape.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/xml_escape.hpp diff --git a/contrib/restricted/boost/boost/archive/iterators/xml_unescape.hpp b/contrib/restricted/boost/serialization/include/boost/archive/iterators/xml_unescape.hpp index 69977404567..69977404567 100644 --- a/contrib/restricted/boost/boost/archive/iterators/xml_unescape.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/iterators/xml_unescape.hpp diff --git a/contrib/restricted/boost/boost/archive/polymorphic_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/polymorphic_iarchive.hpp index d3c59a9f0f4..d3c59a9f0f4 100644 --- a/contrib/restricted/boost/boost/archive/polymorphic_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/polymorphic_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/polymorphic_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/polymorphic_oarchive.hpp index edac4edb1e8..edac4edb1e8 100644 --- a/contrib/restricted/boost/boost/archive/polymorphic_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/polymorphic_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/text_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/text_iarchive.hpp index d9d60adf0b8..d9d60adf0b8 100644 --- a/contrib/restricted/boost/boost/archive/text_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/text_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/text_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/text_oarchive.hpp index 9ba0dafffb4..9ba0dafffb4 100644 --- a/contrib/restricted/boost/boost/archive/text_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/text_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/text_wiarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/text_wiarchive.hpp index 3adf068a51a..3adf068a51a 100644 --- a/contrib/restricted/boost/boost/archive/text_wiarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/text_wiarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/text_woarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/text_woarchive.hpp index b6b4f8ed59a..b6b4f8ed59a 100644 --- a/contrib/restricted/boost/boost/archive/text_woarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/text_woarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/wcslen.hpp b/contrib/restricted/boost/serialization/include/boost/archive/wcslen.hpp index 0b60004f095..0b60004f095 100644 --- a/contrib/restricted/boost/boost/archive/wcslen.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/wcslen.hpp diff --git a/contrib/restricted/boost/boost/archive/xml_archive_exception.hpp b/contrib/restricted/boost/serialization/include/boost/archive/xml_archive_exception.hpp index 82c53ef5d3e..82c53ef5d3e 100644 --- a/contrib/restricted/boost/boost/archive/xml_archive_exception.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/xml_archive_exception.hpp diff --git a/contrib/restricted/boost/boost/archive/xml_iarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/xml_iarchive.hpp index abd2f9fc4e3..abd2f9fc4e3 100644 --- a/contrib/restricted/boost/boost/archive/xml_iarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/xml_iarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/xml_oarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/xml_oarchive.hpp index eea12680372..eea12680372 100644 --- a/contrib/restricted/boost/boost/archive/xml_oarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/xml_oarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/xml_wiarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/xml_wiarchive.hpp index 2ca3e5595ec..2ca3e5595ec 100644 --- a/contrib/restricted/boost/boost/archive/xml_wiarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/xml_wiarchive.hpp diff --git a/contrib/restricted/boost/boost/archive/xml_woarchive.hpp b/contrib/restricted/boost/serialization/include/boost/archive/xml_woarchive.hpp index cb7ce68cb6f..cb7ce68cb6f 100644 --- a/contrib/restricted/boost/boost/archive/xml_woarchive.hpp +++ b/contrib/restricted/boost/serialization/include/boost/archive/xml_woarchive.hpp diff --git a/contrib/restricted/boost/boost/serialization/access.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/access.hpp index f6581accc91..f6581accc91 100644 --- a/contrib/restricted/boost/boost/serialization/access.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/access.hpp diff --git a/contrib/restricted/boost/boost/serialization/array.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/array.hpp index 612d1a61985..612d1a61985 100644 --- a/contrib/restricted/boost/boost/serialization/array.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/array.hpp diff --git a/contrib/restricted/boost/boost/serialization/array_optimization.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/array_optimization.hpp index 40dffba871a..40dffba871a 100644 --- a/contrib/restricted/boost/boost/serialization/array_optimization.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/array_optimization.hpp diff --git a/contrib/restricted/boost/boost/serialization/array_wrapper.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/array_wrapper.hpp index adf436e15b4..adf436e15b4 100644 --- a/contrib/restricted/boost/boost/serialization/array_wrapper.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/array_wrapper.hpp diff --git a/contrib/restricted/boost/boost/serialization/assume_abstract.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/assume_abstract.hpp index 632f9312f5f..632f9312f5f 100644 --- a/contrib/restricted/boost/boost/serialization/assume_abstract.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/assume_abstract.hpp diff --git a/contrib/restricted/boost/boost/serialization/base_object.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/base_object.hpp index 1a82cecd4b5..1a82cecd4b5 100644 --- a/contrib/restricted/boost/boost/serialization/base_object.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/base_object.hpp diff --git a/contrib/restricted/boost/boost/serialization/collection_size_type.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/collection_size_type.hpp index 2dd8fa72584..2dd8fa72584 100644 --- a/contrib/restricted/boost/boost/serialization/collection_size_type.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/collection_size_type.hpp diff --git a/contrib/restricted/boost/boost/serialization/config.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/config.hpp index ea8cb9239ed..ea8cb9239ed 100644 --- a/contrib/restricted/boost/boost/serialization/config.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/config.hpp diff --git a/contrib/restricted/boost/boost/serialization/extended_type_info.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/extended_type_info.hpp index bb2a190d465..bb2a190d465 100644 --- a/contrib/restricted/boost/boost/serialization/extended_type_info.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/extended_type_info.hpp diff --git a/contrib/restricted/boost/boost/serialization/extended_type_info_no_rtti.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/extended_type_info_no_rtti.hpp index aaa8b44459b..aaa8b44459b 100644 --- a/contrib/restricted/boost/boost/serialization/extended_type_info_no_rtti.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/extended_type_info_no_rtti.hpp diff --git a/contrib/restricted/boost/boost/serialization/extended_type_info_typeid.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/extended_type_info_typeid.hpp index 8ee591b3169..8ee591b3169 100644 --- a/contrib/restricted/boost/boost/serialization/extended_type_info_typeid.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/extended_type_info_typeid.hpp diff --git a/contrib/restricted/boost/boost/serialization/factory.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/factory.hpp index 2db7e7e36c3..2db7e7e36c3 100644 --- a/contrib/restricted/boost/boost/serialization/factory.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/factory.hpp diff --git a/contrib/restricted/boost/boost/serialization/force_include.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/force_include.hpp index 55ab79d0d58..55ab79d0d58 100644 --- a/contrib/restricted/boost/boost/serialization/force_include.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/force_include.hpp diff --git a/contrib/restricted/boost/boost/serialization/is_bitwise_serializable.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/is_bitwise_serializable.hpp index 7e24a2cb6d8..7e24a2cb6d8 100644 --- a/contrib/restricted/boost/boost/serialization/is_bitwise_serializable.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/is_bitwise_serializable.hpp diff --git a/contrib/restricted/boost/boost/serialization/item_version_type.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/item_version_type.hpp index f3e5adac6f8..f3e5adac6f8 100644 --- a/contrib/restricted/boost/boost/serialization/item_version_type.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/item_version_type.hpp diff --git a/contrib/restricted/boost/boost/serialization/level.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/level.hpp index f6a84d10422..f6a84d10422 100644 --- a/contrib/restricted/boost/boost/serialization/level.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/level.hpp diff --git a/contrib/restricted/boost/boost/serialization/level_enum.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/level_enum.hpp index baf64e04f31..baf64e04f31 100644 --- a/contrib/restricted/boost/boost/serialization/level_enum.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/level_enum.hpp diff --git a/contrib/restricted/boost/boost/serialization/nvp.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/nvp.hpp index 066fe94d879..066fe94d879 100644 --- a/contrib/restricted/boost/boost/serialization/nvp.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/nvp.hpp diff --git a/contrib/restricted/boost/boost/serialization/serialization.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/serialization.hpp index a4d04723c75..a4d04723c75 100644 --- a/contrib/restricted/boost/boost/serialization/serialization.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/serialization.hpp diff --git a/contrib/restricted/boost/boost/serialization/singleton.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/singleton.hpp index 0bde1f95517..0bde1f95517 100644 --- a/contrib/restricted/boost/boost/serialization/singleton.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/singleton.hpp diff --git a/contrib/restricted/boost/boost/serialization/smart_cast.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/smart_cast.hpp index 563f36aa20b..563f36aa20b 100644 --- a/contrib/restricted/boost/boost/serialization/smart_cast.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/smart_cast.hpp diff --git a/contrib/restricted/boost/boost/serialization/split_free.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/split_free.hpp index 85e2f590fe4..85e2f590fe4 100644 --- a/contrib/restricted/boost/boost/serialization/split_free.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/split_free.hpp diff --git a/contrib/restricted/boost/boost/serialization/split_member.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/split_member.hpp index 5f32520559e..5f32520559e 100644 --- a/contrib/restricted/boost/boost/serialization/split_member.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/split_member.hpp diff --git a/contrib/restricted/boost/boost/serialization/state_saver.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/state_saver.hpp index 248b8d91556..248b8d91556 100644 --- a/contrib/restricted/boost/boost/serialization/state_saver.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/state_saver.hpp diff --git a/contrib/restricted/boost/boost/serialization/static_warning.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/static_warning.hpp index 1d9238fc4d9..1d9238fc4d9 100644 --- a/contrib/restricted/boost/boost/serialization/static_warning.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/static_warning.hpp diff --git a/contrib/restricted/boost/boost/serialization/string.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/string.hpp index 76e695d4f3c..76e695d4f3c 100644 --- a/contrib/restricted/boost/boost/serialization/string.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/string.hpp diff --git a/contrib/restricted/boost/boost/serialization/strong_typedef.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/strong_typedef.hpp index fdd1b24c9cb..fdd1b24c9cb 100644 --- a/contrib/restricted/boost/boost/serialization/strong_typedef.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/strong_typedef.hpp diff --git a/contrib/restricted/boost/boost/serialization/throw_exception.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/throw_exception.hpp index b67618adc92..b67618adc92 100644 --- a/contrib/restricted/boost/boost/serialization/throw_exception.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/throw_exception.hpp diff --git a/contrib/restricted/boost/boost/serialization/tracking.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/tracking.hpp index d5c79b8409d..d5c79b8409d 100644 --- a/contrib/restricted/boost/boost/serialization/tracking.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/tracking.hpp diff --git a/contrib/restricted/boost/boost/serialization/tracking_enum.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/tracking_enum.hpp index 278051e1baf..278051e1baf 100644 --- a/contrib/restricted/boost/boost/serialization/tracking_enum.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/tracking_enum.hpp diff --git a/contrib/restricted/boost/boost/serialization/traits.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/traits.hpp index 9e114fdd3df..9e114fdd3df 100644 --- a/contrib/restricted/boost/boost/serialization/traits.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/traits.hpp diff --git a/contrib/restricted/boost/boost/serialization/type_info_implementation.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/type_info_implementation.hpp index 24637a8dbb3..24637a8dbb3 100644 --- a/contrib/restricted/boost/boost/serialization/type_info_implementation.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/type_info_implementation.hpp diff --git a/contrib/restricted/boost/boost/serialization/utility.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/utility.hpp index 4867a4a12d2..4867a4a12d2 100644 --- a/contrib/restricted/boost/boost/serialization/utility.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/utility.hpp diff --git a/contrib/restricted/boost/boost/serialization/version.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/version.hpp index 21a74d73daa..21a74d73daa 100644 --- a/contrib/restricted/boost/boost/serialization/version.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/version.hpp diff --git a/contrib/restricted/boost/boost/serialization/void_cast.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/void_cast.hpp index f1b38286115..f1b38286115 100644 --- a/contrib/restricted/boost/boost/serialization/void_cast.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/void_cast.hpp diff --git a/contrib/restricted/boost/boost/serialization/void_cast_fwd.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/void_cast_fwd.hpp index def61d52bb7..def61d52bb7 100644 --- a/contrib/restricted/boost/boost/serialization/void_cast_fwd.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/void_cast_fwd.hpp diff --git a/contrib/restricted/boost/boost/serialization/wrapper.hpp b/contrib/restricted/boost/serialization/include/boost/serialization/wrapper.hpp index 60d7910b17a..60d7910b17a 100644 --- a/contrib/restricted/boost/boost/serialization/wrapper.hpp +++ b/contrib/restricted/boost/serialization/include/boost/serialization/wrapper.hpp diff --git a/contrib/restricted/boost/libs/serialization/src/archive_exception.cpp b/contrib/restricted/boost/serialization/src/archive_exception.cpp index 729a4edb255..729a4edb255 100644 --- a/contrib/restricted/boost/libs/serialization/src/archive_exception.cpp +++ b/contrib/restricted/boost/serialization/src/archive_exception.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_archive.cpp b/contrib/restricted/boost/serialization/src/basic_archive.cpp index 6c3386e7a3a..6c3386e7a3a 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_archive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_archive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_iarchive.cpp b/contrib/restricted/boost/serialization/src/basic_iarchive.cpp index a5455a530ab..a5455a530ab 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_iarchive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_iarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_iserializer.cpp b/contrib/restricted/boost/serialization/src/basic_iserializer.cpp index 3898a6a7239..3898a6a7239 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_iserializer.cpp +++ b/contrib/restricted/boost/serialization/src/basic_iserializer.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_oarchive.cpp b/contrib/restricted/boost/serialization/src/basic_oarchive.cpp index 653260c33b3..653260c33b3 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_oarchive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_oarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_oserializer.cpp b/contrib/restricted/boost/serialization/src/basic_oserializer.cpp index afe08c4bb88..afe08c4bb88 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_oserializer.cpp +++ b/contrib/restricted/boost/serialization/src/basic_oserializer.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_pointer_iserializer.cpp b/contrib/restricted/boost/serialization/src/basic_pointer_iserializer.cpp index 7cf63f306e4..7cf63f306e4 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_pointer_iserializer.cpp +++ b/contrib/restricted/boost/serialization/src/basic_pointer_iserializer.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_pointer_oserializer.cpp b/contrib/restricted/boost/serialization/src/basic_pointer_oserializer.cpp index e86f7b78edc..e86f7b78edc 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_pointer_oserializer.cpp +++ b/contrib/restricted/boost/serialization/src/basic_pointer_oserializer.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_serializer_map.cpp b/contrib/restricted/boost/serialization/src/basic_serializer_map.cpp index 5b79107728e..5b79107728e 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_serializer_map.cpp +++ b/contrib/restricted/boost/serialization/src/basic_serializer_map.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_text_iprimitive.cpp b/contrib/restricted/boost/serialization/src/basic_text_iprimitive.cpp index c0b7f766820..c0b7f766820 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_text_iprimitive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_text_iprimitive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_text_oprimitive.cpp b/contrib/restricted/boost/serialization/src/basic_text_oprimitive.cpp index 601662294e0..601662294e0 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_text_oprimitive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_text_oprimitive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_text_wiprimitive.cpp b/contrib/restricted/boost/serialization/src/basic_text_wiprimitive.cpp index 28250007bd1..28250007bd1 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_text_wiprimitive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_text_wiprimitive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_text_woprimitive.cpp b/contrib/restricted/boost/serialization/src/basic_text_woprimitive.cpp index 6c0caa9793a..6c0caa9793a 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_text_woprimitive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_text_woprimitive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_xml_archive.cpp b/contrib/restricted/boost/serialization/src/basic_xml_archive.cpp index 23ab1819d11..23ab1819d11 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_xml_archive.cpp +++ b/contrib/restricted/boost/serialization/src/basic_xml_archive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/basic_xml_grammar.ipp b/contrib/restricted/boost/serialization/src/basic_xml_grammar.ipp index dcec1cc6bee..dcec1cc6bee 100644 --- a/contrib/restricted/boost/libs/serialization/src/basic_xml_grammar.ipp +++ b/contrib/restricted/boost/serialization/src/basic_xml_grammar.ipp diff --git a/contrib/restricted/boost/libs/serialization/src/binary_iarchive.cpp b/contrib/restricted/boost/serialization/src/binary_iarchive.cpp index 41aad8413e4..41aad8413e4 100644 --- a/contrib/restricted/boost/libs/serialization/src/binary_iarchive.cpp +++ b/contrib/restricted/boost/serialization/src/binary_iarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/binary_oarchive.cpp b/contrib/restricted/boost/serialization/src/binary_oarchive.cpp index 8b86d2cb385..8b86d2cb385 100644 --- a/contrib/restricted/boost/libs/serialization/src/binary_oarchive.cpp +++ b/contrib/restricted/boost/serialization/src/binary_oarchive.cpp diff --git a/contrib/restricted/boost/serialization/src/binary_wiarchive.cpp b/contrib/restricted/boost/serialization/src/binary_wiarchive.cpp new file mode 100644 index 00000000000..720d469d702 --- /dev/null +++ b/contrib/restricted/boost/serialization/src/binary_wiarchive.cpp @@ -0,0 +1,47 @@ +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 +// binary_wiarchive.cpp: + +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . +// 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 http://www.boost.org for updates, documentation, and revision history. + +#include <boost/config.hpp> + +#ifdef BOOST_NO_STD_WSTREAMBUF +#error "wide char i/o not supported on this platform" +#else + +#define BOOST_WARCHIVE_SOURCE +#include <boost/archive/binary_wiarchive.hpp> +#include <boost/archive/detail/archive_serializer_map.hpp> + +// explicitly instantiate for this type of text stream +#include <boost/archive/impl/archive_serializer_map.ipp> +#include <boost/archive/impl/basic_binary_iprimitive.ipp> +#include <boost/archive/impl/basic_binary_iarchive.ipp> + +namespace boost { +namespace archive { + +// explicitly instantiate for this type of text stream +template class detail::archive_serializer_map<binary_wiarchive>; +template class basic_binary_iprimitive< + binary_wiarchive, + wchar_t, + std::char_traits<wchar_t> +>; +template class basic_binary_iarchive<binary_wiarchive> ; +template class binary_iarchive_impl< + binary_wiarchive, + wchar_t, + std::char_traits<wchar_t> +>; + +} // namespace archive +} // namespace boost + +#endif // BOOST_NO_STD_WSTREAMBUF + diff --git a/contrib/restricted/boost/serialization/src/binary_woarchive.cpp b/contrib/restricted/boost/serialization/src/binary_woarchive.cpp new file mode 100644 index 00000000000..905a319d664 --- /dev/null +++ b/contrib/restricted/boost/serialization/src/binary_woarchive.cpp @@ -0,0 +1,44 @@ +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 +// binary_woarchive.cpp: + +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . +// 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 http://www.boost.org for updates, documentation, and revision history. + +#include <boost/config.hpp> + +#ifdef BOOST_NO_STD_WSTREAMBUF +#error "wide char i/o not supported on this platform" +#else + +#define BOOST_WARCHIVE_SOURCE +#include <boost/archive/binary_woarchive.hpp> + +// explicitly instantiate for this type of text stream +#include <boost/archive/impl/archive_serializer_map.ipp> +#include <boost/archive/impl/basic_binary_oprimitive.ipp> +#include <boost/archive/impl/basic_binary_oarchive.ipp> + +namespace boost { +namespace archive { + +template class detail::archive_serializer_map<binary_woarchive>; +template class basic_binary_oprimitive< + binary_woarchive, + wchar_t, + std::char_traits<wchar_t> +>; +template class basic_binary_oarchive<binary_woarchive> ; +template class binary_oarchive_impl< + binary_woarchive, + wchar_t, + std::char_traits<wchar_t> +>; + +} // namespace archive +} // namespace boost + +#endif // BOOST_NO_STD_WSTREAMBUF diff --git a/contrib/restricted/boost/libs/serialization/src/codecvt_null.cpp b/contrib/restricted/boost/serialization/src/codecvt_null.cpp index 624afc21618..624afc21618 100644 --- a/contrib/restricted/boost/libs/serialization/src/codecvt_null.cpp +++ b/contrib/restricted/boost/serialization/src/codecvt_null.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/extended_type_info.cpp b/contrib/restricted/boost/serialization/src/extended_type_info.cpp index 364fe56d842..364fe56d842 100644 --- a/contrib/restricted/boost/libs/serialization/src/extended_type_info.cpp +++ b/contrib/restricted/boost/serialization/src/extended_type_info.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/extended_type_info_no_rtti.cpp b/contrib/restricted/boost/serialization/src/extended_type_info_no_rtti.cpp index 0a8d2a078c7..0a8d2a078c7 100644 --- a/contrib/restricted/boost/libs/serialization/src/extended_type_info_no_rtti.cpp +++ b/contrib/restricted/boost/serialization/src/extended_type_info_no_rtti.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/extended_type_info_typeid.cpp b/contrib/restricted/boost/serialization/src/extended_type_info_typeid.cpp index 7413d2e3a40..7413d2e3a40 100644 --- a/contrib/restricted/boost/libs/serialization/src/extended_type_info_typeid.cpp +++ b/contrib/restricted/boost/serialization/src/extended_type_info_typeid.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/polymorphic_iarchive.cpp b/contrib/restricted/boost/serialization/src/polymorphic_iarchive.cpp index 249363b8ea6..249363b8ea6 100644 --- a/contrib/restricted/boost/libs/serialization/src/polymorphic_iarchive.cpp +++ b/contrib/restricted/boost/serialization/src/polymorphic_iarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/polymorphic_oarchive.cpp b/contrib/restricted/boost/serialization/src/polymorphic_oarchive.cpp index f63296be5b0..f63296be5b0 100644 --- a/contrib/restricted/boost/libs/serialization/src/polymorphic_oarchive.cpp +++ b/contrib/restricted/boost/serialization/src/polymorphic_oarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/stl_port.cpp b/contrib/restricted/boost/serialization/src/stl_port.cpp index 343faa6d16f..343faa6d16f 100644 --- a/contrib/restricted/boost/libs/serialization/src/stl_port.cpp +++ b/contrib/restricted/boost/serialization/src/stl_port.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/text_iarchive.cpp b/contrib/restricted/boost/serialization/src/text_iarchive.cpp index dfcff4e149e..dfcff4e149e 100644 --- a/contrib/restricted/boost/libs/serialization/src/text_iarchive.cpp +++ b/contrib/restricted/boost/serialization/src/text_iarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/text_oarchive.cpp b/contrib/restricted/boost/serialization/src/text_oarchive.cpp index ae24a0bf748..ae24a0bf748 100644 --- a/contrib/restricted/boost/libs/serialization/src/text_oarchive.cpp +++ b/contrib/restricted/boost/serialization/src/text_oarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/text_wiarchive.cpp b/contrib/restricted/boost/serialization/src/text_wiarchive.cpp index 6b6e592f74a..6b6e592f74a 100644 --- a/contrib/restricted/boost/libs/serialization/src/text_wiarchive.cpp +++ b/contrib/restricted/boost/serialization/src/text_wiarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/text_woarchive.cpp b/contrib/restricted/boost/serialization/src/text_woarchive.cpp index 46441694ef6..46441694ef6 100644 --- a/contrib/restricted/boost/libs/serialization/src/text_woarchive.cpp +++ b/contrib/restricted/boost/serialization/src/text_woarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/utf8_codecvt_facet.cpp b/contrib/restricted/boost/serialization/src/utf8_codecvt_facet.cpp index f6550d07dee..f6550d07dee 100644 --- a/contrib/restricted/boost/libs/serialization/src/utf8_codecvt_facet.cpp +++ b/contrib/restricted/boost/serialization/src/utf8_codecvt_facet.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/void_cast.cpp b/contrib/restricted/boost/serialization/src/void_cast.cpp index 405130306c8..405130306c8 100644 --- a/contrib/restricted/boost/libs/serialization/src/void_cast.cpp +++ b/contrib/restricted/boost/serialization/src/void_cast.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp b/contrib/restricted/boost/serialization/src/xml_archive_exception.cpp index f4ca98c0869..f4ca98c0869 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp +++ b/contrib/restricted/boost/serialization/src/xml_archive_exception.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_grammar.cpp b/contrib/restricted/boost/serialization/src/xml_grammar.cpp index ae48f70decc..ae48f70decc 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_grammar.cpp +++ b/contrib/restricted/boost/serialization/src/xml_grammar.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_iarchive.cpp b/contrib/restricted/boost/serialization/src/xml_iarchive.cpp index 0a19a8e8e69..0a19a8e8e69 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_iarchive.cpp +++ b/contrib/restricted/boost/serialization/src/xml_iarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_oarchive.cpp b/contrib/restricted/boost/serialization/src/xml_oarchive.cpp index c238845d634..c238845d634 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_oarchive.cpp +++ b/contrib/restricted/boost/serialization/src/xml_oarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_wgrammar.cpp b/contrib/restricted/boost/serialization/src/xml_wgrammar.cpp index 7c053e80984..7c053e80984 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_wgrammar.cpp +++ b/contrib/restricted/boost/serialization/src/xml_wgrammar.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_wiarchive.cpp b/contrib/restricted/boost/serialization/src/xml_wiarchive.cpp index 8c60abf733b..8c60abf733b 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_wiarchive.cpp +++ b/contrib/restricted/boost/serialization/src/xml_wiarchive.cpp diff --git a/contrib/restricted/boost/libs/serialization/src/xml_woarchive.cpp b/contrib/restricted/boost/serialization/src/xml_woarchive.cpp index f9b6ba389ef..f9b6ba389ef 100644 --- a/contrib/restricted/boost/libs/serialization/src/xml_woarchive.cpp +++ b/contrib/restricted/boost/serialization/src/xml_woarchive.cpp diff --git a/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.darwin.txt b/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.darwin.txt index 2a95f861d8f..879d1d28f16 100644 --- a/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.darwin.txt +++ b/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.darwin.txt @@ -21,6 +21,7 @@ target_link_libraries(clickhouse_client_udf INTERFACE public-udf-support contrib-libs-cctz contrib-restricted-boost + boost-libs-multi_index restricted-boost-program_options contrib-restricted-cityhash-1.0.2 contrib-restricted-fast_float @@ -80,6 +81,7 @@ target_link_libraries(clickhouse_client_udf.global PUBLIC public-udf-support contrib-libs-cctz contrib-restricted-boost + boost-libs-multi_index restricted-boost-program_options contrib-restricted-cityhash-1.0.2 contrib-restricted-fast_float diff --git a/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.linux.txt b/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.linux.txt index 6565ae3962a..42a31cb5eb6 100644 --- a/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.linux.txt +++ b/ydb/library/yql/udfs/common/clickhouse/client/CMakeLists.linux.txt @@ -21,6 +21,7 @@ target_link_libraries(clickhouse_client_udf INTERFACE public-udf-support contrib-libs-cctz contrib-restricted-boost + boost-libs-multi_index restricted-boost-program_options contrib-restricted-cityhash-1.0.2 contrib-restricted-fast_float @@ -80,6 +81,7 @@ target_link_libraries(clickhouse_client_udf.global PUBLIC public-udf-support contrib-libs-cctz contrib-restricted-boost + boost-libs-multi_index restricted-boost-program_options contrib-restricted-cityhash-1.0.2 contrib-restricted-fast_float |