Skip to content

Commit c292723

Browse files
committed
Merge pull request #298 from kariya-mitsuru/lib.complex.member.ops
[lib.complex.member.ops] fix operator declarations
2 parents cc9580b + 3ceb787 commit c292723

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
@@ -618,7 +618,7 @@
618618

619619
\indexlibrary{\idxcode{operator+=}!\idxcode{complex}}%
620620
\begin{itemdecl}
621-
complex<T>& operator+=(const complex<T>& rhs);
621+
template<class X> complex<T>& operator+=(const complex<X>& rhs);
622622
\end{itemdecl}
623623

624624
\begin{itemdescr}
@@ -636,7 +636,7 @@
636636

637637
\indexlibrary{\idxcode{operator-=}!\idxcode{complex}}%
638638
\begin{itemdecl}
639-
complex<T>& operator-=(const complex<T>& rhs);
639+
template<class X> complex<T>& operator-=(const complex<X>& rhs);
640640
\end{itemdecl}
641641

642642
\begin{itemdescr}
@@ -654,7 +654,7 @@
654654

655655
\indexlibrary{\idxcode{operator*=}!\idxcode{complex}}%
656656
\begin{itemdecl}
657-
complex<T>& operator*=(const complex<T>& rhs);
657+
template<class X> complex<T>& operator*=(const complex<X>& rhs);
658658
\end{itemdecl}
659659

660660
\begin{itemdescr}
@@ -671,7 +671,7 @@
671671

672672
\indexlibrary{\idxcode{operator/=}!\idxcode{complex}}%
673673
\begin{itemdecl}
674-
complex<T>& operator/=(const complex<T>& rhs);
674+
template<class X> complex<T>& operator/=(const complex<X>& rhs);
675675
\end{itemdecl}
676676

677677
\begin{itemdescr}

0 commit comments

Comments
 (0)