Browse Source

intermediate changes
ref:d3515f56b52a66049f5804ad22ad29f3dd32edce

arcadia-devtools 2 years ago
parent
commit
96b5e87137
1 changed files with 0 additions and 6 deletions
  1. 0 6
      library/cpp/yt/memory/intrusive_ptr.h

+ 0 - 6
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();
 }