From 7b441d9d7103c5fc6607d37f766313fc163053d3 Mon Sep 17 00:00:00 2001 From: Yishuo Wang Date: Sun, 22 Sep 2024 13:39:11 +0800 Subject: [PATCH] Update ch11.tex --- latex/src/ch11.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latex/src/ch11.tex b/latex/src/ch11.tex index f6d9573..cae1b7d 100644 --- a/latex/src/ch11.tex +++ b/latex/src/ch11.tex @@ -285,7 +285,7 @@ \subsubsection{折叠函数调用} 也就是说,你现在可以简单写出如下实现: \begin{lstlisting} template - void callFoo(Types&&... args) + void callFoo(const Types&... args) { ... (... , foo(args)); // 调用foo(arg1),foo(arg2),foo(arg3),...