Fixed small errors in C++-part

This commit is contained in:
Oliver Rümpelein 2016-05-25 11:35:37 +02:00
parent ad3f5956bd
commit 8d80efe6c5
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
// $CC -Wall -Werror -pedantic -pedantic-errors -std=c++1z -o $OUT $IN
/* "Old" code:
* The usage of auto to implicitly get the return type is C++17,
* The usage of auto to implicitly get the return type is C++14,
* the main part is using C++11 variadic templates and overloading
*/
auto sum1() { return 0;}

View file

@ -479,7 +479,7 @@ int c = accumulate(a.begin(), a.end(), 15, minus<int>());
\begin{frame}[fragile]{Generics example: Folds}
\begin{uncoverenv}<+->
Using \cpp{}11 with variadic templates, one has (mod \cppcmd{auto})
Using \cpp{}11/14 with variadic templates, one has
\begin{cppcode}
auto sum() { return 0; }