拷贝构造函数不能传值,只能传引用,而且一般是传const引用

为什么呢?因为传值函数,需要调用拷贝构造函数,那就层层循环无止境了。

原文地址:https://www.cnblogs.com/charlesblc/p/6413695.html