From 0e03805439a09c2890a28f227cd3a7607e295a37 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 4 Dec 2025 04:46:00 +0300 Subject: [PATCH] added nodiscard + static --- include/omath/collision/epa_algorithm.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index 1875176..ee349fa 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -191,7 +191,8 @@ namespace omath::collision }; struct HeapCmp final { - bool operator()(const HeapItem& lhs, const HeapItem& rhs) const noexcept + [[nodiscard]] + static bool operator()(const HeapItem& lhs, const HeapItem& rhs) const noexcept { return lhs.d > rhs.d; // min-heap by distance }