<分区>
Possible Duplicate:
Why should the copy constructor accept its parameter by reference in C++?
Why is copy constructor not allowed pass by value?
我正在阅读我的 C++ 类(class)的讲义。在注释中他们说类的复制构造函数签名是
MyClass(MyClass &other)
和
MyClass(MyClass other)
不会工作。这是为什么?
谢谢!