diff --git a/include/cute/algorithm/tuple_algorithms.hpp b/include/cute/algorithm/tuple_algorithms.hpp index 2cd8706b..0912f243 100644 --- a/include/cute/algorithm/tuple_algorithms.hpp +++ b/include/cute/algorithm/tuple_algorithms.hpp @@ -525,11 +525,9 @@ back(T&& t) // We help it by peeling off the nonrecursive case a level "early." if constexpr (! is_tuple(static_cast(t)))>>::value) { return get(static_cast(t)); - } - else { + } else { return back(get(static_cast(t))); } - } else { return static_cast(t); } @@ -565,8 +563,7 @@ select(T const & t, Indices const & indices) { if constexpr (is_tuple::value) { return cute::transform(indices, [&t](auto i) { return select(t, i); }); - } - else { + } else { static_assert(is_static::value, "Order must be static"); return get(t); } @@ -625,8 +622,7 @@ flatten_to_tuple(T const& t) if constexpr (is_tuple::value) { if constexpr (is_flat::value) { return t; - } else - { + } else { return filter_tuple(t, [](auto const& a) { return flatten_to_tuple(a); }); } } else { @@ -644,8 +640,7 @@ flatten(T const& t) if constexpr (is_tuple::value) { if constexpr (is_flat::value) { return t; - } else - { + } else { return filter_tuple(t, [](auto const& a) { return flatten_to_tuple(a); }); } } else {