Skip to content

Commit af4403e

Browse files
authored
Merge pull request #2765 from laramiel/patch-1
Minor xindex_view to_array cleanup
2 parents d7f2ffc + df93239 commit af4403e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/xtensor/xindex_view.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define XTENSOR_INDEX_VIEW_HPP
1212

1313
#include <algorithm>
14+
#include <array>
1415
#include <cstddef>
1516
#include <tuple>
1617
#include <type_traits>
@@ -791,7 +792,7 @@ namespace xt
791792
inline auto index_view(E&& e, const xindex (&indices)[L]) noexcept
792793
{
793794
using view_type = xindex_view<xclosure_t<E>, std::array<xindex, L>>;
794-
return view_type(std::forward<E>(e), to_array(indices));
795+
return view_type(std::forward<E>(e), xt::to_array(indices));
795796
}
796797

797798
/**

0 commit comments

Comments
 (0)