摘要: 今天在看《Effective C++》的Item 10时,书中说道,赋值操作符需要返回的是对*this的引用。例如:class Widget {public: ... Widget& operator += (const Widget& rhs) { ... ... 阅读全文
posted @ 2014-12-16 16:23 wiessharling 阅读(146) 评论(0) 推荐(0) 编辑