From 2be0061b3ac8e342c5dc999deb2835c5c756fee9 Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Sun, 29 Sep 2024 15:16:43 +0200 Subject: [PATCH] Two micro-changes for the advanced part of core-modern. --- talk/morelanguage/exceptions.tex | 2 +- talk/morelanguage/templates.tex | 2 +- talk/setup.tex | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/talk/morelanguage/exceptions.tex b/talk/morelanguage/exceptions.tex index e425efd8..df88885f 100644 --- a/talk/morelanguage/exceptions.tex +++ b/talk/morelanguage/exceptions.tex @@ -376,7 +376,7 @@ \item An exception will leave the program in a defined state \begin{itemize} \item At least destructors must be able to run - \item This is similar to the moved from state + \item This is similar to the moved-from state \end{itemize} \item No resources are leaked \end{itemize} diff --git a/talk/morelanguage/templates.tex b/talk/morelanguage/templates.tex index a8eca9c0..de87399e 100644 --- a/talk/morelanguage/templates.tex +++ b/talk/morelanguage/templates.tex @@ -479,7 +479,7 @@ std::array a{1, 2, 3}; // std::array std::mutex m; - std::lock_guard l(m); // std::lock_guard + std::lock_guard l{m}; // std::lock_guard \end{cppcode*} \end{block} \end{frame} diff --git a/talk/setup.tex b/talk/setup.tex index 2318b1a1..8a79031b 100644 --- a/talk/setup.tex +++ b/talk/setup.tex @@ -77,6 +77,7 @@ \usepackage{comment} \usepackage{totcount} \usepackage{xspace} +\usepackage{fontawesome} % Use C++Course.cut for output so it's cleaned by latexmk \def\DefaultCutFileName{\def\CommentCutFile{\jobname.cut}} @@ -177,7 +178,7 @@ % Use as \frametitlecpp[14]{Title} \newcommand\frametitlecpp[2][98]{ \ifisAdvancedSlide - \frametitle{#2 \hfill \cpp#1 \small Adv} + \frametitle{#2 \hfill \small \faSearch \normalsize \cpp#1} \else \frametitle{#2 \hfill \cpp#1} \fi