Skip to content

Commit f79c0ac

Browse files
amadiobernhardmgruber
authored andcommitted
Add point about auto preventing type conversions
1 parent 51d0f3c commit f79c0ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

talk/basicconcepts/auto.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
\begin{block}{Reason of being}
66
\begin{itemize}
77
\item Many type declarations are redundant
8-
\item They are also a source for compiler warnings and errors
8+
\item They are often a source for compiler warnings and errors
9+
\item Using auto prevents unwanted/unnecessary type conversions
910
\end{itemize}
1011
\begin{cppcode*}{}
1112
std::vector<int> v;

0 commit comments

Comments
 (0)