From 6d20729a1ac4cdb8bea4ce2b1d6f1e9850b2ea5b Mon Sep 17 00:00:00 2001 From: Ivan Gagis's Bot Date: Mon, 23 Nov 2026 02:59:47 +0200 Subject: [PATCH] fix assert ambiguity: use direct bool condition instead of lambda Apple clang (Xcode 26.6) reports the lambda form of utki::assert() with a by-value local capture as an ambiguous call between the bool and the std::function overloads. Pass the condition directly as a bool expression to avoid the ambiguity. --- src/ruis/widget/group/tiling_area.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ruis/widget/group/tiling_area.cpp b/src/ruis/widget/group/tiling_area.cpp index e96b6bef9..2859589ed 100644 --- a/src/ruis/widget/group/tiling_area.cpp +++ b/src/ruis/widget/group/tiling_area.cpp @@ -323,12 +323,7 @@ void tiling_area::on_lay_out() for (auto i = std::next(this->begin()); i != this->end(); ++i) { auto index = size_t(std::distance(this->begin(), i)) - 1; - utki::assert( - [this, index]() -> bool { - return index < this->get_container().size(); - }, - SL - ); + utki::assert(index < this->get_container().size(), SL); auto& dragger = dynamic_cast(i->get());