Skip to content

Commit

Permalink
Merge pull request #3 from dufuhang/master
Browse files Browse the repository at this point in the history
修改了/notes/ch13.md/“三五法则”中的错误
  • Loading branch information
applenob committed Mar 25, 2020
2 parents 4e4e376 + dd08458 commit 2248b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notes/ch13.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

### 三/五法则

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

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


0 comments on commit 2248b35

Please sign in to comment.