https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108118

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-12-15
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Actually for this type the standard does require it to be effectively a no-op:

weak_ptr& operator=(weak_ptr&& r) noexcept;

Effects: Equivalent to weak_ptr(std::move(r)).swap(*this).

Reply via email to