Skip to content

Commit

Permalink
Fix ranges::min and ranges::max errors (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 authored Feb 18, 2025
1 parent 59cb84f commit cdb78f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/include/Geode/utils/ranges.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit cdb78f6

Please # to comment.