From 58fe82cdf9aafebc6cb2c3b3707c4f9af43b3442 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 17 Dec 2024 21:21:42 +0000 Subject: [PATCH] [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 --- source/numerics.tex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/numerics.tex b/source/numerics.tex index b848876d8d..c110d786a1 100644 --- a/source/numerics.tex +++ b/source/numerics.tex @@ -12240,7 +12240,7 @@ if that expression is valid, with overload resolution performed in a context that includes the declaration \begin{codeblock} -template T abs(T) = delete; +template U abs(U) = delete; \end{codeblock} If the function selected by overload resolution does not return the absolute value of its input, @@ -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 T conj(const T&) = delete; +template U conj(const U&) = delete; \end{codeblock} If the function selected by overload resolution does not return the complex conjugate of its input, @@ -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 T real(const T&) = delete; +template U real(const U&) = delete; \end{codeblock} If the function selected by overload resolution does not return the real part of its input, @@ -12304,7 +12304,7 @@ is valid, with overload resolution performed in a context that includes the declaration \begin{codeblock} -template T imag(const T&) = delete; +template U imag(const U&) = delete; \end{codeblock} If the function selected by overload resolution does not return the imaginary part of its input,