From c2b1e8ca0d00301cd6987eb20ced83e3ead7a168 Mon Sep 17 00:00:00 2001 From: Alexander Tokmakov Date: Mon, 22 May 2023 19:30:28 +0200 Subject: [PATCH] fix --- src/Parsers/IAST_fwd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parsers/IAST_fwd.h b/src/Parsers/IAST_fwd.h index 27116939a23..53d41d42d65 100644 --- a/src/Parsers/IAST_fwd.h +++ b/src/Parsers/IAST_fwd.h @@ -29,7 +29,7 @@ template 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(); }