Skip to content

Commit

Permalink
[linalg.helpers] Rename template parameter for poison pills
Browse files Browse the repository at this point in the history
This avoids reusing `T` which is also used for the type of the
subexpression E.

Fixes #7494
  • Loading branch information
jwakely authored and tkoeppe committed Dec 17, 2024
1 parent a18040f commit 0131e01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/numerics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12240,7 +12240,7 @@
if that expression is valid,
with overload resolution performed in a context that includes the declaration
\begin{codeblock}
template<class T> T abs(T) = delete;
template<class U> U abs(U) = delete;
\end{codeblock}
If the function selected by overload resolution
does not return the absolute value of its input,
Expand All @@ -12260,7 +12260,7 @@
the expression \tcode{conj(E)} is valid,
with overload resolution performed in a context that includes the declaration
\begin{codeblock}
template<class T> T conj(const T&) = delete;
template<class U> U conj(const U&) = delete;
\end{codeblock}
If the function selected by overload resolution
does not return the complex conjugate of its input,
Expand All @@ -12282,7 +12282,7 @@
the expression \tcode{real(E)} is valid,
with overload resolution performed in a context that includes the declaration
\begin{codeblock}
template<class T> T real(const T&) = delete;
template<class U> U real(const U&) = delete;
\end{codeblock}
If the function selected by overload resolution
does not return the real part of its input,
Expand All @@ -12304,7 +12304,7 @@
is valid, with overload resolution performed in a context
that includes the declaration
\begin{codeblock}
template<class T> T imag(const T&) = delete;
template<class U> U imag(const U&) = delete;
\end{codeblock}
If the function selected by overload resolution
does not return the imaginary part of its input,
Expand Down

0 comments on commit 0131e01

Please sign in to comment.