From 49cb2472fdbb15d120b80e12d0386f9a6e8532ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Sat, 26 Oct 2024 14:19:21 -0400 Subject: [PATCH] [qty.mag] Update for parameter renames --- docs/api_reference/src/quantities.tex | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/api_reference/src/quantities.tex b/docs/api_reference/src/quantities.tex index a55be5c72..bd4f9b353 100644 --- a/docs/api_reference/src/quantities.tex +++ b/docs/api_reference/src/quantities.tex @@ -1590,17 +1590,20 @@ template struct @\libglobal{magnitude}@ { - friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude m1, @\libconcept{Magnitude}@ auto m2); + friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude lhs, @\libconcept{Magnitude}@ auto rhs); - friend consteval auto operator/(magnitude l, @\libconcept{Magnitude}@ auto r) { return l * @\exposidnc{pow}@<-1>(r); } + friend consteval auto operator/(magnitude lhs, @\libconcept{Magnitude}@ auto rhs) + { + return lhs * @\exposidnc{pow}@<-1>(rhs); + } template friend consteval auto @\exposidnc{pow}@(magnitude); - template<@\libconcept{Magnitude}@ M2> - friend consteval bool operator==(magnitude, M2) + template<@\libconcept{Magnitude}@ Rhs> + friend consteval bool operator==(magnitude, Rhs) { - return ^magnitude == ^M2; + return ^magnitude == ^Rhs; } friend consteval bool @\exposidnc{is-positive-integral-power}@(magnitude); @@ -1614,7 +1617,7 @@ represents the product of its template arguments. \begin{itemdecl} -friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude m1, @\libconcept{Magnitude}@ auto m2); +friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude lhs, @\libconcept{Magnitude}@ auto rhs); \end{itemdecl} \begin{itemdescr} @@ -1624,7 +1627,7 @@ \item If the type of a parameter is \tcode{magnitude<>}, returns the other parameter. \item -Otherwise, returns an unspecified model of \libconcept{Magnitude} equal to $\tcode{m1} \times \tcode{m2}$. +Otherwise, returns an unspecified model of \libconcept{Magnitude} equal to $\tcode{lhs} \times \tcode{rhs}$. \end{itemize} \end{itemdescr}