mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-29 14:19:51 -04:00
Fix ranges::filter crash (#1236)
This commit is contained in:
parent
d00480078c
commit
174296814b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue