出现error: binding 'const xxxx' to reference of type 'xxxx&' discards qualifiers的一种可能原因是
你的函数参数使用的是加const修饰的,但你定义的的成员变量确是不加const修饰是。
出现error: binding 'const xxxx' to reference of type 'xxxx&' discards qualifiers的一种可能原因是
你的函数参数使用的是加const修饰的,但你定义的的成员变量确是不加const修饰是。