We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 444dbe5 commit aaa819eCopy full SHA for aaa819e
include/xtensor/xstrided_view.hpp
@@ -809,17 +809,17 @@ namespace xt
809
810
namespace detail
811
{
812
- template <typename S, typename Enable = void>
+ template <typename S>
813
struct rebind_shape;
814
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>>
+ template <std::size_t... X>
+ struct rebind_shape<xt::fixed_shape<X...>>
817
818
- using type = S;
+ using type = xt::fixed_shape<X...>;
819
};
820
821
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>>
+ struct rebind_shape
823
824
using type = rebind_container_t<size_t, S>;
825
0 commit comments