diff --git a/include/boost/histogram/detail/span.hpp b/include/boost/histogram/detail/span.hpp index f2b841c0..01694c0d 100644 --- a/include/boost/histogram/detail/span.hpp +++ b/include/boost/histogram/detail/span.hpp @@ -7,11 +7,6 @@ #ifndef BOOST_HISTOGRAM_DETAIL_SPAN_HPP #define BOOST_HISTOGRAM_DETAIL_SPAN_HPP -#include -#include -#include -#include - #if __cpp_constexpr >= 201603 && __cpp_deduction_guides >= 201703 && \ __cpp_lib_nonmember_container_access >= 201411 && __has_include() #include @@ -225,8 +220,21 @@ public: } }; +} // namespace detail +} // namespace histogram +} // namespace boost + #endif +#include +#include + +namespace boost { +namespace histogram { +namespace detail { + +namespace dtl = ::boost::histogram::detail; + template auto make_span(T* begin, T* end) { return dtl::span{begin, end};