From 274db747e820a8726717d72bd165242628f4c32f Mon Sep 17 00:00:00 2001 From: Joel Falcou Date: Fri, 6 Sep 2024 11:47:58 +0200 Subject: [PATCH] Small fixes --- include/kwk/utility/container/shape.hpp | 2 +- include/kwk/utility/container/stride.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/kwk/utility/container/shape.hpp b/include/kwk/utility/container/shape.hpp index f40c7e3d..cb077fac 100644 --- a/include/kwk/utility/container/shape.hpp +++ b/include/kwk/utility/container/shape.hpp @@ -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(m)) && ... && true); }, *this); } //============================================================================================== diff --git a/include/kwk/utility/container/stride.hpp b/include/kwk/utility/container/stride.hpp index 06fcbe34..776e1ab9 100644 --- a/include/kwk/utility/container/stride.hpp +++ b/include/kwk/utility/container/stride.hpp @@ -81,11 +81,11 @@ namespace kwk //============================================================================================== // stride is its self option keyword //============================================================================================== - using stored_value_type = stride; + using stored_value_type = stride 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; } //==============================================================================================