From 8176153ec043ad2d41fe3444bfc7828ceeac0b49 Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Mon, 27 Oct 2025 12:16:30 +0100 Subject: [PATCH 1/2] Add a hyphen and a comment on optimisations. --- talk/basicconcepts/scopesnamespaces.tex | 2 +- talk/objectorientation/inheritance.tex | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/talk/basicconcepts/scopesnamespaces.tex b/talk/basicconcepts/scopesnamespaces.tex index c49976bd..2bef6164 100644 --- a/talk/basicconcepts/scopesnamespaces.tex +++ b/talk/basicconcepts/scopesnamespaces.tex @@ -202,7 +202,7 @@ \item allows much better compiler optimizations and checking \begin{itemize} \item e.g. unused function warning - \item context dependent optimizations + \item context-dependent optimizations \end{itemize} \end{itemize} \end{block} diff --git a/talk/objectorientation/inheritance.tex b/talk/objectorientation/inheritance.tex index 086909d5..0576b879 100644 --- a/talk/objectorientation/inheritance.tex +++ b/talk/objectorientation/inheritance.tex @@ -275,6 +275,7 @@ \begin{itemize} \item make sure you cannot inherit from a given class \item by declaring it final + \item this \emph{may} allow the compiler to apply optimisations \end{itemize} \end{block} \begin{exampleblock}{Practically} From 695f01e00926c4c449ba8d64ab5790e3596fb081 Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Mon, 27 Oct 2025 12:17:10 +0100 Subject: [PATCH 2/2] Put constness in the adv. course schedule. Move semantics aren't necessarily covered on the first day, so it can't be part of the afternoon schedule. --- exercises/ExerciseSchedule_AdvancedCourse.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/ExerciseSchedule_AdvancedCourse.md b/exercises/ExerciseSchedule_AdvancedCourse.md index c4e31398..4e84b7a7 100644 --- a/exercises/ExerciseSchedule_AdvancedCourse.md +++ b/exercises/ExerciseSchedule_AdvancedCourse.md @@ -12,9 +12,11 @@ Day 1 ### Hello World (directory: [`hello`](hello), [CheatSheet](ExercisesCheatSheet.md#hello-world-directory-hello)) +### Constness (directory: [`constness`](constness), [cheatSheet](ExercisesCheatSheet.md#constness-directory-constness)) + ### Operator overloading (directory: [`operators`](operators), [cheatSheet](ExercisesCheatSheet.md#operator-overloading-directory-operators)) -### Move semantic (directory: [`move`](move), [cheatSheet](ExercisesCheatSheet.md#move-semantic-directory-move)) +### Move semantic (if discussed during the lecture, directory: [`move`](move), [cheatSheet](ExercisesCheatSheet.md#move-semantic-directory-move)) ### Debugging (directory: [`debug`](debug), [cheatSheet](ExercisesCheatSheet.md#debugging-directory-debug)) This was actually covered in the essential course, but it's always good to be fluent with gdb when writing C++ !