update boost

This commit is contained in:
2023-11-24 12:56:13 -06:00
parent cfc99971af
commit 19d727037a
9260 changed files with 849256 additions and 299957 deletions

View File

@@ -2,7 +2,7 @@
@file
Defines `boost::hana::basic_tuple`.
@copyright Louis Dionne 2013-2017
Copyright Louis Dionne 2013-2022
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
@@ -32,7 +32,7 @@ Distributed under the Boost Software License, Version 1.0.
#include <utility>
BOOST_HANA_NAMESPACE_BEGIN
namespace boost { namespace hana {
namespace detail {
//////////////////////////////////////////////////////////////////////
// basic_tuple_impl<n, Xn>
@@ -42,10 +42,18 @@ BOOST_HANA_NAMESPACE_BEGIN
struct from_other { };
template <typename Indices, typename ...Xn>
#ifdef BOOST_HANA_WORKAROUND_MSVC_EMPTYBASE
struct __declspec(empty_bases) basic_tuple_impl;
#else
struct basic_tuple_impl;
#endif
template <std::size_t ...n, typename ...Xn>
#ifdef BOOST_HANA_WORKAROUND_MSVC_EMPTYBASE
struct __declspec(empty_bases) basic_tuple_impl<std::index_sequence<n...>, Xn...>
#else
struct basic_tuple_impl<std::index_sequence<n...>, Xn...>
#endif
: detail::ebo<bti<n>, Xn>...
{
static constexpr std::size_t size_ = sizeof...(Xn);
@@ -193,7 +201,7 @@ BOOST_HANA_NAMESPACE_BEGIN
static constexpr auto apply(Xs&& xs, N const&) {
constexpr std::size_t len = detail::decay<Xs>::type::size_;
return drop_front_helper<N::value>(static_cast<Xs&&>(xs), std::make_index_sequence<
N::value < len ? len - N::value : 0
(N::value < len) ? len - N::value : 0
>{});
}
};
@@ -251,6 +259,6 @@ BOOST_HANA_NAMESPACE_BEGIN
return hana::size_t<sizeof...(Xn)>{};
}
};
BOOST_HANA_NAMESPACE_END
}} // end namespace boost::hana
#endif // !BOOST_HANA_BASIC_TUPLE_HPP