Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou committed Sep 6, 2024
1 parent 95a2ecd commit 274db74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/kwk/utility/container/shape.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ namespace kwk
KWK_PURE constexpr bool contains(Coords... p) const noexcept
requires(static_order == sizeof...(Coords))
{
return kumi::apply( [&](auto... m) { return ((p < m) && ... && true); }, *this);
return kumi::apply( [&](auto... m) { return ((p < static_cast<Coords>(m)) && ... && true); }, *this);
}

//==============================================================================================
Expand Down
4 changes: 2 additions & 2 deletions include/kwk/utility/container/stride.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ namespace kwk
//==============================================================================================
// stride is its self option keyword
//==============================================================================================
using stored_value_type = stride<Strides...>;
using stored_value_type = stride<Strides...> const&;
using keyword_type = __::strides_;

// constexpr auto operator()(keyword_type const&) const noexcept { return *this; }
constexpr auto const& operator()(keyword_type const&) const noexcept { return *this; }
constexpr stored_value_type operator()(keyword_type const&) const noexcept { return *this; }


//==============================================================================================
Expand Down

0 comments on commit 274db74

Please sign in to comment.