Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Oct 17, 2023
1 parent 44a10a8 commit f06d1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch05/constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main() {
- 小括号初始化器:`@"("初始化值列表")"@`。此时,会调用构造函数(细节见后续章节)。
- 无初始化器:若有无参构造函数,则调用构造函数;若为基础数据类型,则不进行初始化。
> 一旦出现一个构造函数,就不能试图通过小括号初始化器来聚合初始化结构体了
> 一旦出现一个构造函数,就不能试图通过大括号初始化器来聚合初始化(也即“逐成员初始化”)结构体了
>
> 在 C++20 中,两种初始化器事实上是可以混用的。
Expand Down

0 comments on commit f06d1f5

Please sign in to comment.