effective C ++ 条款10 operator= 返回一个reference to *this
int x,y,z;
x = y = z = 15;
class Widget{
public:
...
Wdiget& operator = (const Widget &rhs){
return *this;
}
}
int x,y,z;
x = y = z = 15;
class Widget{
public:
...
Wdiget& operator = (const Widget &rhs){
return *this;
}
}