mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
resolve #7, 补充丢失的分号
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
笔者感谢以下读者指出本书中出现的错误:
|
笔者感谢以下读者指出本书中出现的错误:
|
||||||
|
|
||||||
[Recolic Keghart](https://www.gitbook.com/@recolic), [sinomiko](https://www.gitbook.com/@sinomiko), [Wang Zhenhua](https://www.gitbook.com/@jackwish), [asm warrior](https://www.gitbook.com/@asmwarrior), [garicc](https://www.gitbook.com/@ihpy), [Wenhan Jiang](https://www.gitbook.com/@jiangwenhan), [liang xiao](https://www.gitbook.com/@liangx8), [slivermeteor](https://github.com/slivermeteor)
|
[Recolic Keghart](https://www.gitbook.com/@recolic), [sinomiko](https://www.gitbook.com/@sinomiko), [Wang Zhenhua](https://www.gitbook.com/@jackwish), [asm warrior](https://www.gitbook.com/@asmwarrior), [garicc](https://www.gitbook.com/@ihpy), [Wenhan Jiang](https://www.gitbook.com/@jiangwenhan), [liang xiao](https://www.gitbook.com/@liangx8), [slivermeteor](https://github.com/slivermeteor), [inkedawn](https://github.com/inkedawn)
|
||||||
|
|
||||||
## 赞助
|
## 赞助
|
||||||
|
|
||||||
|
|||||||
@@ -737,7 +737,7 @@ C++ 17 中将变长参数这种特性进一步带给了表达式,考虑下面
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
template<typename ... T>
|
template<typename ... T>
|
||||||
auto sum(T ... t) {
|
auto sum(T ... t) {
|
||||||
return (t + ...)
|
return (t + ...);
|
||||||
}
|
}
|
||||||
int main() {
|
int main() {
|
||||||
std::cout << sum(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) << std::endl;
|
std::cout << sum(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user