mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
fix
This commit is contained in:
parent
821b64b420
commit
c2b1e8ca0d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user