aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-17 23:15:28 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-17 23:15:28 +0300
commit96b5e871373a95696f1383fdbca55acdb9a7fe8c (patch)
treed1434e0316fda1b887c0bb07b7756dea747bc6c2 /library
parent34dae6b0e0d291a015e3f01180f9da698f89bb40 (diff)
downloadydb-96b5e871373a95696f1383fdbca55acdb9a7fe8c.tar.gz
intermediate changes
ref:d3515f56b52a66049f5804ad22ad29f3dd32edce
Diffstat (limited to 'library')
-rw-r--r--library/cpp/yt/memory/intrusive_ptr.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/library/cpp/yt/memory/intrusive_ptr.h b/library/cpp/yt/memory/intrusive_ptr.h
index 3dead7db1d..788abea08f 100644
--- a/library/cpp/yt/memory/intrusive_ptr.h
+++ b/library/cpp/yt/memory/intrusive_ptr.h
@@ -288,9 +288,6 @@ bool operator!=(const TIntrusivePtr<T>& lhs, const TIntrusivePtr<U>& rhs)
template <class T, class U>
bool operator==(const TIntrusivePtr<T>& lhs, U* rhs)
{
- static_assert(
- std::is_convertible_v<U*, T*>,
- "U* must be convertible to T*");
return lhs.Get() == rhs;
}
@@ -306,9 +303,6 @@ bool operator!=(const TIntrusivePtr<T>& lhs, U* rhs)
template <class T, class U>
bool operator==(T* lhs, const TIntrusivePtr<U>& rhs)
{
- static_assert(
- std::is_convertible_v<U*, T*>,
- "U* must be convertible to T*");
return lhs == rhs.Get();
}