We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46b0e6 commit 51d0f3cCopy full SHA for 51d0f3c
talk/basicconcepts/assert.tex
@@ -77,7 +77,7 @@
77
\begin{cppcode*}{}
78
double f(UserType a) {
79
static_assert(
80
- std::is_floating_point_v<UserType>,
+ std::is_floating_point<UserType>::value,
81
"This function expects floating-point types.");
82
return std::sqrt(a);
83
}
@@ -89,7 +89,7 @@
89
\textcolor{blue}{a.cpp:3:9:} \textcolor{red}{error:} \textcolor{blue}{static assertion failed: This function}
90
\textcolor{blue}{expects floating-point types.}
91
2 | static_assert(
92
- | \textcolor{red}{std::is_floating_point_v<UserType>},
93
- | \textcolor{red}{~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
+ | \textcolor{red}{std::is_floating_point<UserType>::value},
+ | \textcolor{red}{~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
94
\end{Verbatim}
95
\end{frame}
0 commit comments