Skip to content

Commit

Permalink
Clarify that declval is a function.
Browse files Browse the repository at this point in the history
  • Loading branch information
hageboeck committed Oct 20, 2023
1 parent 4a5e770 commit c89fa2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions talk/expert/sfinae.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
\frametitlecpp[11]{\texttt{declval}}
\begin{block}{The main idea}
\begin{itemize}
\item gives you a reference to a ``fake'' object at compile time
\item function to create reference to a ``fake'' object at compile time
\item useful for types that cannot easily be constructed
\item use only in unevaluated contexts, e.g. inside \cppinline{decltype}
\item use only in unevaluated contexts, e.g.\ inside \cppinline{decltype}
\end{itemize}
\end{block}
\begin{exampleblock}{}
Expand Down

0 comments on commit c89fa2a

Please sign in to comment.