added nodiscard + static

This commit is contained in:
2025-12-04 04:46:00 +03:00
parent eafefb40ec
commit 0e03805439

View File

@@ -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
}