From d0303074a6f21b42198f13d86f2d02dd4f7caafa Mon Sep 17 00:00:00 2001 From: mikhnenko <mikhnenko@yandex-team.com> Date: Wed, 11 Oct 2023 23:56:12 +0300 Subject: Add missed #include <functional> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В новой версии libcxx functional перестает подключаться вместе с algorithm, map и другими. Добавил явную зависимость. --- library/cpp/erasure/lrc_isa.h | 1 + library/cpp/protobuf/json/util.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'library') diff --git a/library/cpp/erasure/lrc_isa.h b/library/cpp/erasure/lrc_isa.h index 800dc3c5ca..0255577ce7 100644 --- a/library/cpp/erasure/lrc_isa.h +++ b/library/cpp/erasure/lrc_isa.h @@ -13,6 +13,7 @@ extern "C" { #include <util/generic/array_ref.h> +#include <functional> #include <optional> #include <vector> diff --git a/library/cpp/protobuf/json/util.cpp b/library/cpp/protobuf/json/util.cpp index 53a065eee2..52702683b7 100644 --- a/library/cpp/protobuf/json/util.cpp +++ b/library/cpp/protobuf/json/util.cpp @@ -2,6 +2,8 @@ #include <util/string/ascii.h> +#include <functional> + namespace { void ToSnakeCaseImpl(TString* const name, std::function<bool(const char)> requiresUnderscore) { bool requiresChanges = false; -- cgit v1.2.3