mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
resolve #7, 补充丢失的分号
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user