This commit is contained in:
Alexander Tokmakov 2023-05-22 19:30:28 +02:00
parent 821b64b420
commit c2b1e8ca0d

View File

@ -29,7 +29,7 @@ template <class Predicate>
inline typename DB::ASTs::size_type erase_if(DB::ASTs & asts, Predicate pred)
{
auto old_size = asts.size();
std::erase_if(asts, pred);
asts.erase(std::remove_if(asts.begin(), asts.end(), pred), asts.end());
return old_size - asts.size();
}