updated boost on windows
This commit is contained in:
@@ -149,13 +149,21 @@ BOOST_HANA_NAMESPACE_BEGIN
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
template <>
|
||||
struct less_impl<ext::std::array_tag, ext::std::array_tag> {
|
||||
template <typename T, typename U>
|
||||
static constexpr auto apply(std::array<T, 0> const&, std::array<U, 0> const&)
|
||||
{ return hana::false_c; }
|
||||
|
||||
template <typename T, std::size_t n, typename U, std::size_t m>
|
||||
static constexpr auto apply(std::array<T, n> const& xs, std::array<U, m> const& ys) {
|
||||
return detail::lexicographical_compare(&xs[0], &xs[0] + n, &ys[0], &ys[0] + m);
|
||||
// This logic is more complex than it needs to be because we can't
|
||||
// use `.begin()` and `.end()`, which are not constexpr in C++14,
|
||||
// and because `&arr[0]` is UB when the array is empty.
|
||||
if (xs.empty()) {
|
||||
return !ys.empty();
|
||||
} else {
|
||||
if (ys.empty()) {
|
||||
return false;
|
||||
} else {
|
||||
return detail::lexicographical_compare(&xs[0], &xs[0] + n,
|
||||
&ys[0], &ys[0] + m);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
BOOST_HANA_NAMESPACE_END
|
||||
|
||||
@@ -31,13 +31,6 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
#include <utility>
|
||||
|
||||
|
||||
#ifdef BOOST_HANA_CONFIG_HAS_NO_STD_TUPLE_ADAPTER
|
||||
# error The adapter for std::tuple is not supported with versions of \
|
||||
libc++ prior to the one shipped with Clang 3.7 because of a bug \
|
||||
in the tuple implementation.
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef BOOST_HANA_DOXYGEN_INVOKED
|
||||
namespace std {
|
||||
//! @ingroup group-ext-std
|
||||
|
||||
Reference in New Issue
Block a user