diff options
author | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-07-01 15:11:07 +0300 |
---|---|---|
committer | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-07-01 15:25:00 +0300 |
commit | 31d022104125aedefc297faf72cb7843ca530647 (patch) | |
tree | c778d914ca7dfb8f8e9e2eeeb5e99a2f2b77d9f2 /library/cpp | |
parent | b0d3a18e417220376ffd1dd0e2f41f05343d82b7 (diff) | |
download | ydb-31d022104125aedefc297faf72cb7843ca530647.tar.gz |
Pre-vacation babenko issues
7be48a0651838e770b920150e0348bf3e92416d2
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/yt/string/format.h | 4 | ||||
-rw-r--r-- | library/cpp/yt/string/format_arg.h | 2 | ||||
-rw-r--r-- | library/cpp/yt/string/string_builder-inl.h | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/library/cpp/yt/string/format.h b/library/cpp/yt/string/format.h index 62b8726ddb..9e12d286b7 100644 --- a/library/cpp/yt/string/format.h +++ b/library/cpp/yt/string/format.h @@ -99,11 +99,11 @@ struct TFormatterWrapper // Allows insertion of text conditionally. // Usage: /* - NYT::Format( +NYT::Format( "Value is %v%v", 42, MakeFormatterWrapper([&] (auto* builder) { - If (PossiblyMissingInfo_) { + if (PossiblyMissingInfo_) { builder->AppendString(", PossiblyMissingInfo: "); FormatValue(builder, PossiblyMissingInfo_, "v"); } diff --git a/library/cpp/yt/string/format_arg.h b/library/cpp/yt/string/format_arg.h index 6240059ed9..544e265766 100644 --- a/library/cpp/yt/string/format_arg.h +++ b/library/cpp/yt/string/format_arg.h @@ -27,7 +27,7 @@ constexpr bool IsNYTName(); // Base used for flag checks for each type independently. // Use it for overrides. -struct TFormatArgBase +class TFormatArgBase { public: // TODO(arkady-e1ppa): Consider more strict formatting rules. diff --git a/library/cpp/yt/string/string_builder-inl.h b/library/cpp/yt/string/string_builder-inl.h index 9fb3ae94f8..24f1e33880 100644 --- a/library/cpp/yt/string/string_builder-inl.h +++ b/library/cpp/yt/string/string_builder-inl.h @@ -171,6 +171,8 @@ TString ToStringIgnoringFormatValue(const T& t) // automatic formatting wherever it is needed. namespace NPrivate { +//////////////////////////////////////////////////////////////////////////////// + template <class T> requires ( (NYT::NDetail::IsNYTName<T>() || @@ -184,4 +186,6 @@ struct TToString<T, false> } }; +//////////////////////////////////////////////////////////////////////////////// + } // namespace NPrivate |