Skip to content

Commit

Permalink
Merge pull request #2765 from laramiel/patch-1
Browse files Browse the repository at this point in the history
Minor xindex_view to_array cleanup
  • Loading branch information
JohanMabille committed Jan 16, 2024
2 parents d7f2ffc + df93239 commit af4403e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/xtensor/xindex_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define XTENSOR_INDEX_VIEW_HPP

#include <algorithm>
#include <array>
#include <cstddef>
#include <tuple>
#include <type_traits>
Expand Down Expand Up @@ -791,7 +792,7 @@ namespace xt
inline auto index_view(E&& e, const xindex (&indices)[L]) noexcept
{
using view_type = xindex_view<xclosure_t<E>, std::array<xindex, L>>;
return view_type(std::forward<E>(e), to_array(indices));
return view_type(std::forward<E>(e), xt::to_array(indices));
}

/**
Expand Down

0 comments on commit af4403e

Please sign in to comment.