最近有人来问复制构造函数和重载值赋值运算符分别在什么时候会被调用。这里理了一下思路。
复制构造和重载赋值运算符直接上一段代码:
class Dot {
private:
int x;
int
2021-10-07