diff options
author | babenko <babenko@yandex-team.com> | 2023-05-20 23:47:34 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2023-05-20 23:47:34 +0300 |
commit | 5ab6089a8faa17ba61127d3c95f937f9539ef087 (patch) | |
tree | 15d58433d8c254f7f10608f7fe8b52205cc78d0b | |
parent | 29a3d2ffbd49df0636f54be5c6af168fb759d3a1 (diff) | |
download | ydb-5ab6089a8faa17ba61127d3c95f937f9539ef087.tar.gz |
YT-18571: Drop TStrongTypedef::operator=
-rw-r--r-- | library/cpp/yt/misc/strong_typedef-inl.h | 16 | ||||
-rw-r--r-- | library/cpp/yt/misc/strong_typedef.h | 6 |
2 files changed, 0 insertions, 22 deletions
diff --git a/library/cpp/yt/misc/strong_typedef-inl.h b/library/cpp/yt/misc/strong_typedef-inl.h index 1729e3db7e..836be91776 100644 --- a/library/cpp/yt/misc/strong_typedef-inl.h +++ b/library/cpp/yt/misc/strong_typedef-inl.h @@ -29,22 +29,6 @@ constexpr TStrongTypedef<T, TTag>::TStrongTypedef(T&& underlying) { } template <class T, class TTag> -constexpr TStrongTypedef<T, TTag>& TStrongTypedef<T, TTag>::operator=(const T& rhs) - requires std::is_copy_assignable_v<T> -{ - Underlying_ = rhs; - return *this; -} - -template <class T, class TTag> -constexpr TStrongTypedef<T, TTag>& TStrongTypedef<T, TTag>::operator=(T&& rhs) - requires std::is_move_assignable_v<T> -{ - Underlying_ = std::move(rhs); - return *this; -} - -template <class T, class TTag> constexpr TStrongTypedef<T, TTag>::operator const T&() const { return Underlying_; diff --git a/library/cpp/yt/misc/strong_typedef.h b/library/cpp/yt/misc/strong_typedef.h index a74ee3cf23..cf0de6de12 100644 --- a/library/cpp/yt/misc/strong_typedef.h +++ b/library/cpp/yt/misc/strong_typedef.h @@ -28,12 +28,6 @@ public: TStrongTypedef& operator=(const TStrongTypedef&) = default; TStrongTypedef& operator=(TStrongTypedef&&) = default; - constexpr TStrongTypedef& operator=(const T& rhs) - requires std::is_copy_assignable_v<T>; - - constexpr TStrongTypedef& operator=(T&& rhs) - requires std::is_move_assignable_v<T>; - constexpr explicit operator const T&() const; constexpr explicit operator T&(); |