复制构造函数的这种实现有一些缺点吗?
Foo::Foo(const Foo& i_foo) { *this = i_foo; }
我记得,在某些书中建议从赋值运算符调用复制构造函数并使用众所周知的交换技巧,但我不记得了,为什么......
c++ copy-constructor
c++ ×1
copy-constructor ×1