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

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

 

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

 

posted @ 2018-07-14 18:39  confusion  阅读(502)  评论(0编辑  收藏  举报