From cdb78f6c489e4fb95a757dc97c44db5d423f0acf Mon Sep 17 00:00:00 2001 From: Jasmine <52604018+hiimjasmine00@users.noreply.github.com> Date: Tue, 18 Feb 2025 00:24:29 -0500 Subject: [PATCH] Fix ranges::min and ranges::max errors (#1239) --- loader/include/Geode/utils/ranges.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/include/Geode/utils/ranges.hpp b/loader/include/Geode/utils/ranges.hpp index 3fc59e817..f99356c65 100644 --- a/loader/include/Geode/utils/ranges.hpp +++ b/loader/include/Geode/utils/ranges.hpp @@ -238,7 +238,7 @@ namespace geode::utils::ranges { typename C::value_type min(C const& container) { auto it = std::min_element(container.begin(), container.end()); if (it == container.end()) { - return C::value_type(); + return typename C::value_type(); } return *it; } @@ -264,7 +264,7 @@ namespace geode::utils::ranges { typename C::value_type max(C const& container) { auto it = std::max_element(container.begin(), container.end()); if (it == container.end()) { - return C::value_type(); + return typename C::value_type(); } return *it; }