diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-12-20 07:30:06 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-12-20 08:24:43 +0300 |
commit | f2be671abaceb9f7db98d5c7f1d603a80d51e393 (patch) | |
tree | 14825519817cf2f2fb13fe745876d32f2309db61 | |
parent | 31230451a2efcdb40f6d994220fee18169a18cef (diff) | |
download | ydb-f2be671abaceb9f7db98d5c7f1d603a80d51e393.tar.gz |
Update contrib/restricted/boost/move to 1.87.0
commit_hash:08d070c113852d4b1fb54004f48815158b7d0b2c
9 files changed, 37 insertions, 34 deletions
diff --git a/contrib/restricted/boost/move/include/boost/move/adl_move_swap.hpp b/contrib/restricted/boost/move/include/boost/move/adl_move_swap.hpp index 63ad7888e7b..3648ea47f75 100644 --- a/contrib/restricted/boost/move/include/boost/move/adl_move_swap.hpp +++ b/contrib/restricted/boost/move/include/boost/move/adl_move_swap.hpp @@ -40,6 +40,8 @@ //In GCC 4.4 stl_move.h was renamed to move.h #include <bits/move.h> #endif +#elif defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION >= 13000) + #include <__utility/swap.h> //libc++ refactored <utility> headers in smaller headers #elif defined(_LIBCPP_VERSION) #include <type_traits> //The initial import of libc++ defines std::swap and still there #elif __cplusplus >= 201103L diff --git a/contrib/restricted/boost/move/include/boost/move/core.hpp b/contrib/restricted/boost/move/include/boost/move/core.hpp index 79205d6526e..f309139353c 100644 --- a/contrib/restricted/boost/move/include/boost/move/core.hpp +++ b/contrib/restricted/boost/move/include/boost/move/core.hpp @@ -262,12 +262,12 @@ #define BOOST_COPYABLE_AND_MOVABLE(TYPE)\ public:\ - inline TYPE& operator=(TYPE &t)\ + BOOST_MOVE_FORCEINLINE TYPE& operator=(TYPE &t)\ { this->operator=(const_cast<const TYPE&>(t)); return *this;}\ public:\ - inline operator ::boost::rv<TYPE>&() \ + BOOST_MOVE_FORCEINLINE operator ::boost::rv<TYPE>&() \ { return *BOOST_MOVE_TO_RV_CAST(::boost::rv<TYPE>*, this); }\ - inline operator const ::boost::rv<TYPE>&() const \ + BOOST_MOVE_FORCEINLINE operator const ::boost::rv<TYPE>&() const \ { return *BOOST_MOVE_TO_RV_CAST(const ::boost::rv<TYPE>*, this); }\ private:\ // @@ -447,7 +447,7 @@ #else //!defined(BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG) || defined(BOOST_MOVE_DOXYGEN_INVOKED) - #include <boost/move/detail/meta_utils.hpp> + #include <boost/move/detail/meta_utils_core.hpp> namespace boost { namespace move_detail { diff --git a/contrib/restricted/boost/move/include/boost/move/detail/meta_utils.hpp b/contrib/restricted/boost/move/include/boost/move/detail/meta_utils.hpp index ad5654a3952..6e12b178fe8 100644 --- a/contrib/restricted/boost/move/include/boost/move/detail/meta_utils.hpp +++ b/contrib/restricted/boost/move/include/boost/move/detail/meta_utils.hpp @@ -17,10 +17,9 @@ #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif -#include <boost/move/detail/config_begin.hpp> + #include <boost/move/detail/workaround.hpp> //forceinline #include <boost/move/detail/meta_utils_core.hpp> -#include <cstddef> //for std::size_t #include <boost/move/detail/addressof.hpp> //Small meta-typetraits to support move @@ -202,22 +201,6 @@ struct add_const_lvalue_reference }; ////////////////////////////////////// -// is_lvalue_reference -////////////////////////////////////// -template<class T> -struct is_lvalue_reference -{ - static const bool value = false; -}; - -template<class T> -struct is_lvalue_reference<T&> -{ - static const bool value = true; -}; - - -////////////////////////////////////// // identity ////////////////////////////////////// template <class T> @@ -558,6 +541,4 @@ template< class T > struct remove_rvalue_reference { typedef T type; }; } //namespace move_detail { } //namespace boost { -#include <boost/move/detail/config_end.hpp> - #endif //#ifndef BOOST_MOVE_DETAIL_META_UTILS_HPP diff --git a/contrib/restricted/boost/move/include/boost/move/detail/meta_utils_core.hpp b/contrib/restricted/boost/move/include/boost/move/detail/meta_utils_core.hpp index 4e116738345..fcd04c749b4 100644 --- a/contrib/restricted/boost/move/include/boost/move/detail/meta_utils_core.hpp +++ b/contrib/restricted/boost/move/include/boost/move/detail/meta_utils_core.hpp @@ -131,6 +131,21 @@ struct enable_if_same : enable_if<is_same<T, U>, R> {}; template <class T, class U, class R = enable_if_nat> struct disable_if_same : disable_if<is_same<T, U>, R> {}; +////////////////////////////////////// +// is_lvalue_reference +////////////////////////////////////// +template<class T> +struct is_lvalue_reference +{ + static const bool value = false; +}; + +template<class T> +struct is_lvalue_reference<T&> +{ + static const bool value = true; +}; + } //namespace move_detail { } //namespace boost { diff --git a/contrib/restricted/boost/move/include/boost/move/detail/nsec_clock.hpp b/contrib/restricted/boost/move/include/boost/move/detail/nsec_clock.hpp index 88c0551d2d9..62ec2dfb0bc 100644 --- a/contrib/restricted/boost/move/include/boost/move/detail/nsec_clock.hpp +++ b/contrib/restricted/boost/move/include/boost/move/detail/nsec_clock.hpp @@ -43,7 +43,7 @@ #include <cassert> #if defined( BOOST_USE_WINDOWS_H ) -#include <Windows.h> +#include <windows.h> #else #if defined (WIN32_PLATFORM_PSPC) diff --git a/contrib/restricted/boost/move/include/boost/move/detail/placement_new.hpp b/contrib/restricted/boost/move/include/boost/move/detail/placement_new.hpp index 69d33328cfe..11a9fca5765 100644 --- a/contrib/restricted/boost/move/include/boost/move/detail/placement_new.hpp +++ b/contrib/restricted/boost/move/include/boost/move/detail/placement_new.hpp @@ -18,6 +18,8 @@ # pragma once #endif +#include <cstddef> + struct boost_move_new_t{}; //avoid including <new> diff --git a/contrib/restricted/boost/move/include/boost/move/detail/std_ns_begin.hpp b/contrib/restricted/boost/move/include/boost/move/detail/std_ns_begin.hpp index 1d28117b7ca..de13cde5489 100644 --- a/contrib/restricted/boost/move/include/boost/move/detail/std_ns_begin.hpp +++ b/contrib/restricted/boost/move/include/boost/move/detail/std_ns_begin.hpp @@ -23,12 +23,12 @@ #elif defined(BOOST_GNU_STDLIB) && defined(_GLIBCXX_BEGIN_NAMESPACE) //GCC >= 4.2 #define BOOST_MOVE_STD_NS_BEG _GLIBCXX_BEGIN_NAMESPACE(std) #define BOOST_MOVE_STD_NS_END _GLIBCXX_END_NAMESPACE -#else - #if defined(_MSC_VER) && (_MSC_VER >= 1915) - #pragma warning (push) - #pragma warning (disable : 4643) // Forward declaring 'X' in namespace std is not permitted by the C++ Standard - #endif +#elif defined(BOOST_DINKUMWARE_STDLIB) + #define BOOST_MOVE_STD_NS_BEG _STD_BEGIN + #define BOOST_MOVE_STD_NS_END _STD_END +#endif - #define BOOST_MOVE_STD_NS_BEG namespace std{ - #define BOOST_MOVE_STD_NS_END } +#if defined(_MSC_VER) && (_MSC_VER >= 1915) + #pragma warning (push) + #pragma warning (disable : 4643) // Forward declaring 'X' in namespace std is not permitted by the C++ Standard #endif diff --git a/contrib/restricted/boost/move/include/boost/move/detail/std_ns_end.hpp b/contrib/restricted/boost/move/include/boost/move/detail/std_ns_end.hpp index 61af2d7b1e2..abc40ed0220 100644 --- a/contrib/restricted/boost/move/include/boost/move/detail/std_ns_end.hpp +++ b/contrib/restricted/boost/move/include/boost/move/detail/std_ns_end.hpp @@ -14,3 +14,6 @@ #elif defined(_MSC_VER) && (_MSC_VER >= 1915) #pragma warning (pop) #endif //BOOST_MOVE_STD_NS_GCC_DIAGNOSTIC_PUSH + +#undef BOOST_MOVE_STD_NS_BEG +#undef BOOST_MOVE_STD_NS_END diff --git a/contrib/restricted/boost/move/ya.make b/contrib/restricted/boost/move/ya.make index 0821343e3ef..54759399663 100644 --- a/contrib/restricted/boost/move/ya.make +++ b/contrib/restricted/boost/move/ya.make @@ -9,9 +9,9 @@ LICENSE( LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -VERSION(1.86.0) +VERSION(1.87.0) -ORIGINAL_SOURCE(https://github.com/boostorg/move/archive/boost-1.86.0.tar.gz) +ORIGINAL_SOURCE(https://github.com/boostorg/move/archive/boost-1.87.0.tar.gz) PEERDIR( contrib/restricted/boost/config |