aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-03-29 12:18:44 +0300
committerarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-03-29 12:29:53 +0300
commiteaf5a51691d41e25e533160af8d35153d8f7c322 (patch)
treec6f4d91b56801a278993e8a0914fce0924c27206
parent0595439604d7da0ebf23a96e99cf4cb19b24648e (diff)
downloadydb-eaf5a51691d41e25e533160af8d35153d8f7c322.tar.gz
Fix issues of rXXXXXX
Iss 50866203dbb2e8797cb32b2d1fdaa44bda88e1c1
-rw-r--r--library/cpp/yt/exception/attributes.h6
-rw-r--r--library/cpp/yt/exception/exception.cpp5
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)