resolve #7, 补充丢失的分号

This commit is contained in:
Changkun Ou
2018-04-09 05:13:06 +02:00
parent dea0988083
commit b686e8c1cf
2 changed files with 2 additions and 2 deletions

View File

@@ -737,7 +737,7 @@ C++ 17 中将变长参数这种特性进一步带给了表达式,考虑下面
#include <iostream>
template<typename ... T>
auto sum(T ... t) {
return (t + ...)
return (t + ...);
}
int main() {
std::cout << sum(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) << std::endl;