From 03db01b673b516f9309caaee9303d3163116133b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 26 Sep 2024 17:57:24 +0300 Subject: [PATCH] shared_ptr: remove deprecated lw_shared_ptr assignment operator The assignment operator was deprecated in 8038c131b7c ("shared_ptr: deprecate lw_shared_ptr operator=(T&&)"), more than a year ago. It is safe to remove it now. Closes #2456 --- include/seastar/core/shared_ptr.hh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/seastar/core/shared_ptr.hh b/include/seastar/core/shared_ptr.hh index 83189f10ebf..7b38b58df16 100644 --- a/include/seastar/core/shared_ptr.hh +++ b/include/seastar/core/shared_ptr.hh @@ -342,12 +342,6 @@ public: lw_shared_ptr& operator=(std::nullptr_t) noexcept { return *this = lw_shared_ptr(); } - [[deprecated("call make_lw_shared<> and assign the result instead")]] - lw_shared_ptr& operator=(T&& x) noexcept { - this->~lw_shared_ptr(); - new (this) lw_shared_ptr(make_lw_shared(std::move(x))); - return *this; - } T& operator*() const noexcept { return *accessors::to_value(_p); } T* operator->() const noexcept { return accessors::to_value(_p); }