我已经超载了运营商+ Integer operator+(Integer & a, Integer & b).但是当我执行a = b + c + d时,它会将无效操作数的错误提供给二进制表达式.但是通过添加const参数,不会再出现错误.为什么会这样?
Integer operator+(Integer & a, Integer & b)
const
c++ overloading constants
c++ ×1
constants ×1
overloading ×1