mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-09 23:04:07 +00:00
fix for libc++ and c++2a
This commit is contained in:
parent
f56337177d
commit
6d7838d8b4
@ -7,11 +7,6 @@
|
||||
#ifndef BOOST_HISTOGRAM_DETAIL_SPAN_HPP
|
||||
#define BOOST_HISTOGRAM_DETAIL_SPAN_HPP
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/core/nvp.hpp>
|
||||
#include <boost/histogram/detail/static_if.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
#if __cpp_constexpr >= 201603 && __cpp_deduction_guides >= 201703 && \
|
||||
__cpp_lib_nonmember_container_access >= 201411 && __has_include(<span>)
|
||||
#include <span>
|
||||
@ -225,8 +220,21 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
} // namespace histogram
|
||||
} // namespace boost
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/histogram/detail/non_member_container_access.hpp>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace histogram {
|
||||
namespace detail {
|
||||
|
||||
namespace dtl = ::boost::histogram::detail;
|
||||
|
||||
template <class T>
|
||||
auto make_span(T* begin, T* end) {
|
||||
return dtl::span<T>{begin, end};
|
||||
|
Loading…
x
Reference in New Issue
Block a user