const函数返回自身的引用也是常量引用

 const函数返回自身的引用也是const

 解决:根据对象是否为consr重载

原文地址:https://www.cnblogs.com/confusion/p/9310572.html