Ticket #2312: intrusive_ptr_assignment.patch

File intrusive_ptr_assignment.patch, 416 bytes (added by niels_dekker, 14 years ago)
  • intrusive_ptr.hpp

     
    111111
    112112#endif
    113113
    114     intrusive_ptr & operator=(intrusive_ptr const & rhs)
     114    intrusive_ptr & operator=(intrusive_ptr rhs)
    115115    {
    116         this_type(rhs).swap(*this);
     116        rhs.swap(*this);
    117117        return *this;
    118118    }
    119119