Skip to content

Commit

Permalink
Ran pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
spectre-ns committed Nov 15, 2023
1 parent 4e67be4 commit d0506d8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/xtensor/xstrided_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,9 @@ namespace xt
using type = rebind_container_t<size_t, S>;
};

template <class S, std::
enable_if_t<std::is_signed<get_value_type_t<typename std::decay<S>::type>>::value, bool> = true>
template <
class S,
std::enable_if_t<std::is_signed<get_value_type_t<typename std::decay<S>::type>>::value, bool> = true>
inline auto recalculate_shape_impl(S& shape, size_t size)
{
using value_type = get_value_type_t<typename std::decay_t<S>>;
Expand All @@ -841,8 +842,9 @@ namespace xt
return shape;
}

template <class S, std::
enable_if_t<!std::is_signed<get_value_type_t<typename std::decay<S>::type>>::value, bool> = true>
template <
class S,
std::enable_if_t<!std::is_signed<get_value_type_t<typename std::decay<S>::type>>::value, bool> = true>
inline auto recalculate_shape_impl(S& shape, size_t)
{
return shape;
Expand Down

0 comments on commit d0506d8

Please sign in to comment.