Skip to content

Commit

Permalink
Specialized for fixed_shape<t>
Browse files Browse the repository at this point in the history
  • Loading branch information
spectre-ns committed Nov 16, 2023
1 parent 444dbe5 commit aaa819e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/xtensor/xstrided_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,17 +809,17 @@ namespace xt

namespace detail
{
template <typename S, typename Enable = void>
template <typename S>
struct rebind_shape;

template <class S>
struct rebind_shape<S, std::enable_if_t<!std::is_signed<get_value_type_t<typename std::decay_t<S>>>::value>>
template <std::size_t... X>
struct rebind_shape<xt::fixed_shape<X...>>
{
using type = S;
using type = xt::fixed_shape<X...>;
};

template <class S>
struct rebind_shape<S, std::enable_if_t<std::is_signed<get_value_type_t<typename std::decay_t<S>>>::value>>
struct rebind_shape
{
using type = rebind_container_t<size_t, S>;
};
Expand Down

0 comments on commit aaa819e

Please sign in to comment.