c++primer关于赋值操作符的一个问题
ScreenPtr& ScreenPtr::operator=(const ScreenPtr& rhs){ ++ptr->use; if(--ptr->use==0) delete ptr; ptr=rhs.ptr; return *this;}
ScreenPtr& ScreenPtr::operator=(const ScreenPtr& rhs){ ++rhs.ptr->use; if(--ptr->use==0) delete ptr; ptr=rhs.ptr; return *this;}