Skip to content

Commit ab17eef

Browse files
committed
style: apply clang-format to slices
Add braces to if constexpr blocks for consistency.
1 parent 73e4823 commit ab17eef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/xtensor/views/xslice.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,13 @@ namespace xt
761761
type operator()(T t)
762762
{
763763
if constexpr (xtl::integral_concept<T>)
764+
{
764765
return static_cast<std::ptrdiff_t>(t);
766+
}
765767
else
768+
{
766769
return t;
770+
}
767771
}
768772
};
769773

0 commit comments

Comments
 (0)