Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@dyj19901127 hi.
我觉得一个好的习惯就是禁止复制构造函数。除非你每个类都写,但一般也用不到。henry应该是采取不写的做法吧。
这个在c++ primer plus 和effictive c加加里面提到过。书并不在手边你可以看看那个类里面存在指针的时候,复制构造函数怎么泄露的。我更觉得这是个和编程有关的问题和cfd关系不大?