From e1399d181426ef4a62db4df99a2814c6725d6389 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 4 Dec 2025 05:01:52 +0300 Subject: [PATCH] fix --- include/omath/collision/epa_algorithm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index b352f69..5fbe05f 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -218,8 +219,7 @@ namespace omath::collision static void add_edge_boundary(std::pmr::vector& boundary, int a, int b) { // Keep edges that appear only once; erase if opposite already present - auto itb = - std::find_if(boundary.begin(), boundary.end(), [&](const Edge& e) { return e.a == b && e.b == a; }); + auto itb = std::ranges::find_if(boundary, [&](const Edge& e) { return e.a == b && e.b == a; }); if (itb != boundary.end()) boundary.erase(itb); // internal edge cancels out else