Skip to content

Commit

Permalink
Two micro-changes for the advanced part of core-modern.
Browse files Browse the repository at this point in the history
  • Loading branch information
hageboeck committed Sep 29, 2024
1 parent 8e770dd commit 2be0061
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion talk/morelanguage/exceptions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion talk/morelanguage/templates.tex
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
std::array a{1, 2, 3}; // std::array<int, 3>

std::mutex m;
std::lock_guard l(m); // std::lock_guard<std::mutex>
std::lock_guard l{m}; // std::lock_guard<std::mutex>
\end{cppcode*}
\end{block}
\end{frame}
Expand Down
3 changes: 2 additions & 1 deletion talk/setup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2be0061

Please sign in to comment.