Skip to content

Commit

Permalink
Fix ranges::filter crash (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 authored Feb 5, 2025
1 parent d004800 commit 1742968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/include/Geode/utils/ranges.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ namespace geode::utils::ranges {
template <ValidContainer C, ValidCUnaryPredicate<C> Predicate>
C filter(C const& container, Predicate filterFun) {
auto res = C();
std::copy_if(container.begin(), container.end(), res.end(), filterFun);
std::copy_if(container.begin(), container.end(), std::back_inserter(res), filterFun);
return res;
}

Expand Down

0 comments on commit 1742968

Please sign in to comment.