diff options
author | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-03-29 12:18:44 +0300 |
---|---|---|
committer | arkady-e1ppa <arkady-e1ppa@yandex-team.com> | 2024-03-29 12:29:53 +0300 |
commit | eaf5a51691d41e25e533160af8d35153d8f7c322 (patch) | |
tree | c6f4d91b56801a278993e8a0914fce0924c27206 | |
parent | 0595439604d7da0ebf23a96e99cf4cb19b24648e (diff) | |
download | ydb-eaf5a51691d41e25e533160af8d35153d8f7c322.tar.gz |
Fix issues of rXXXXXX
Iss
50866203dbb2e8797cb32b2d1fdaa44bda88e1c1
-rw-r--r-- | library/cpp/yt/exception/attributes.h | 6 | ||||
-rw-r--r-- | library/cpp/yt/exception/exception.cpp | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/library/cpp/yt/exception/attributes.h b/library/cpp/yt/exception/attributes.h index c1a88bb820..f60d733880 100644 --- a/library/cpp/yt/exception/attributes.h +++ b/library/cpp/yt/exception/attributes.h @@ -15,12 +15,6 @@ struct TExceptionAttribute using TKey = TString; using TValue = std::variant<i64, double, bool, TString>; - template <class T> - TExceptionAttribute(const TKey& key, const T& value) - : Key(key) - , Value(value) - { } - TKey Key; TValue Value; }; diff --git a/library/cpp/yt/exception/exception.cpp b/library/cpp/yt/exception/exception.cpp index 16457582ec..71ece1ff2e 100644 --- a/library/cpp/yt/exception/exception.cpp +++ b/library/cpp/yt/exception/exception.cpp @@ -6,8 +6,9 @@ namespace NYT { //////////////////////////////////////////////////////////////////////////////// +namespace { + template <class TRange> - // requires (!std::is_lvalue_reference_v<TRange>) void AddAttributes(TSimpleException::TAttributes& attrs, TRange&& range) { for (auto&& [key, value] : range) { @@ -15,6 +16,8 @@ void AddAttributes(TSimpleException::TAttributes& attrs, TRange&& range) } } +} // namespace + //////////////////////////////////////////////////////////////////////////////// TSimpleException::TSimpleException(TString message) |