Skip to content

Commit c4d5fbe

Browse files
authored
fix typos
1 parent 7d37e8f commit c4d5fbe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎exercise/tasks.tex‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ \section{Recursion}
1313

1414
\section{Function traits}
1515
\label{sec:fcttraits}
16-
Finish the implementation of \texttt{function\_traits} and \texttt{lambda\_traits}, such that the program compiles successfully! Note, that it is sufficient for \texttt{function\_traits} to only accept instances of \texttt{std::function}. Think about how you can use your implementation of \texttt{function\_traits} with lambda expressions and implement this logic in \texttt{lambda\_traits}. Note further, that invocations of \texttt{std::function} are not critical in terms of possible performance penalties in this scenario, as long as the traits are available at compile time (as required in \texttt{main}).
16+
Finish the implementation of \texttt{function\_traits} and \texttt{lambda\_traits} such that the program compiles successfully! Note that it is sufficient for \texttt{function\_traits} to only accept instances of \texttt{std::function}. Think about how you can use your implementation of \texttt{function\_traits} with lambda expressions and implement this logic in \texttt{lambda\_traits}. Note further that invocations of \texttt{std::function} are not critical in terms of possible performance penalties in this scenario, as long as the traits are available at compile time (as required in \texttt{main}).
1717

1818
\inputcpplisting{snippet21a}
1919

@@ -22,7 +22,7 @@ \section{Function traits}
2222
\newpage
2323

2424
\section{Passing lambdas as argument}
25-
Implement \texttt{Filters} as an logical \textit{or} filter gathering, such that the program below compiles and runs successfully.
25+
Implement \texttt{Filters} as an logical \textit{or} filter gathering such that the program below compiles and runs successfully.
2626

2727
\inputcpplisting{snippet20a}
2828

@@ -40,7 +40,7 @@ \section{Passing lambdas as argument}
4040
\begin{lstlisting}
4141
template <typename F> void Filters::add_filter(F)
4242
\end{lstlisting}
43-
that adds a filter to the gathering. Note, that in the example there is no common type in terms of \texttt{std::common\_type\_t} for \texttt{f1}, \texttt{f2} and \texttt{f3}:
43+
that adds a filter to the gathering. Note that in the example there is no common type in terms of \texttt{std::common\_type\_t} for \texttt{f1}, \texttt{f2} and \texttt{f3}:
4444
\begin{lstlisting}
4545
using T12 = std::common_type_t<decltype(f1), decltype(f2)>; // OK
4646
using T123 = std::common_type_t<T12, decltype(f3)>; // Compile-time error!
@@ -105,7 +105,7 @@ \subsection{Step IV}
105105
Filters(Fs... fs)
106106
-> Filters<std::common_type_t< /* TODO */ >>;
107107
\end{lstlisting}
108-
Add an sufficient implementation of
108+
Add a sufficient implementation of
109109
\begin{lstlisting}
110110
template <typename F> void Filters::add_filter(F)
111111
\end{lstlisting}

0 commit comments

Comments
 (0)