fix: typo mistake in item32 (#179)

This commit is contained in:
Ruan Letian 2024-05-07 10:03:34 +08:00 committed by GitHub
parent 8edc363ea7
commit ff3218a1f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ private:
DataType pw;
};
auto func = IsValAndArch(std::make_unique<Widget>());
auto func = IsValAndArch(std::make_unique<Widget>())();
```
这个代码量比*lambda*表达式要多但这并不难改变这样一个事实即如果你希望使用一个C++11的类来支持其数据成员的移动初始化那么你唯一要做的就是在键盘上多花点时间。