Skip to content

Commit 0131e01

Browse files
jwakelytkoeppe
authored andcommitted
[linalg.helpers] Rename template parameter for poison pills
This avoids reusing `T` which is also used for the type of the subexpression E. Fixes #7494
1 parent a18040f commit 0131e01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/numerics.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12240,7 +12240,7 @@
1224012240
if that expression is valid,
1224112241
with overload resolution performed in a context that includes the declaration
1224212242
\begin{codeblock}
12243-
template<class T> T abs(T) = delete;
12243+
template<class U> U abs(U) = delete;
1224412244
\end{codeblock}
1224512245
If the function selected by overload resolution
1224612246
does not return the absolute value of its input,
@@ -12260,7 +12260,7 @@
1226012260
the expression \tcode{conj(E)} is valid,
1226112261
with overload resolution performed in a context that includes the declaration
1226212262
\begin{codeblock}
12263-
template<class T> T conj(const T&) = delete;
12263+
template<class U> U conj(const U&) = delete;
1226412264
\end{codeblock}
1226512265
If the function selected by overload resolution
1226612266
does not return the complex conjugate of its input,
@@ -12282,7 +12282,7 @@
1228212282
the expression \tcode{real(E)} is valid,
1228312283
with overload resolution performed in a context that includes the declaration
1228412284
\begin{codeblock}
12285-
template<class T> T real(const T&) = delete;
12285+
template<class U> U real(const U&) = delete;
1228612286
\end{codeblock}
1228712287
If the function selected by overload resolution
1228812288
does not return the real part of its input,
@@ -12304,7 +12304,7 @@
1230412304
is valid, with overload resolution performed in a context
1230512305
that includes the declaration
1230612306
\begin{codeblock}
12307-
template<class T> T imag(const T&) = delete;
12307+
template<class U> U imag(const U&) = delete;
1230812308
\end{codeblock}
1230912309
If the function selected by overload resolution
1231012310
does not return the imaginary part of its input,

0 commit comments

Comments
 (0)