Skip to content

Commit aaa819e

Browse files
committed
Specialized for fixed_shape<t>
1 parent 444dbe5 commit aaa819e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/xtensor/xstrided_view.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -809,17 +809,17 @@ namespace xt
809809

810810
namespace detail
811811
{
812-
template <typename S, typename Enable = void>
812+
template <typename S>
813813
struct rebind_shape;
814814

815-
template <class S>
816-
struct rebind_shape<S, std::enable_if_t<!std::is_signed<get_value_type_t<typename std::decay_t<S>>>::value>>
815+
template <std::size_t... X>
816+
struct rebind_shape<xt::fixed_shape<X...>>
817817
{
818-
using type = S;
818+
using type = xt::fixed_shape<X...>;
819819
};
820820

821821
template <class S>
822-
struct rebind_shape<S, std::enable_if_t<std::is_signed<get_value_type_t<typename std::decay_t<S>>>::value>>
822+
struct rebind_shape
823823
{
824824
using type = rebind_container_t<size_t, S>;
825825
};

0 commit comments

Comments
 (0)