Skip to content

Commit 2248b35

Browse files
authored
Merge pull request applenob#3 from dufuhang/master
修改了/notes/ch13.md/“三五法则”中的错误
2 parents 4e4e376 + dd08458 commit 2248b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notes/ch13.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
### 三/五法则
5353

54-
- 需要西沟函数的类也需要拷贝和赋值操作
54+
- 需要析构函数的类也需要拷贝和赋值操作
5555
- 需要拷贝操作的类也需要赋值操作,反之亦然。
5656

5757
### 使用=default
@@ -120,4 +120,4 @@
120120
- 区分移动和拷贝的重载函数通常有一个版本接受一个`const T&`,而另一个版本接受一个`T&&`
121121
- 引用限定符:
122122
- 在参数列表后面防止一个`&`,限定只能向可修改的左值赋值而不能向右值赋值。
123-
123+

0 commit comments

Comments
 (0)