class T{...friend const T& operator=(T& left,const T& right);}const T& operator(T& left,const T& right){/*left=right*/...return left;}为什么不能这么写
=也可以精确匹配的呀
呃。。。好吧。我看书上说的是为了保障运算符重载后不影响其原有功能的正常运行,c++对重载运算符进行了限制,其中一个就是上述的四个运算符只能被重载为类成员函数。