From 6e124e38ba59ff31ef0cf3ca1866b3c076d8ab4f Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Wed, 8 Nov 2000 03:01:39 +0000 Subject: [PATCH] * include/bits/std_complex.h (conj): Undo double removal. From-SVN: r37311 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/bits/std_complex.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 420d838..7603efd 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2000-11-06 Gabriel Dos Reis + + * include/bits/std_complex.h (conj): Undo double removal. + 2000-11-06 Alexandre Oliva * acinclude.m4 (LIB_AC_PROG_CXX): Remove CXX from the list of diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h index b2aaa4e..ce14dee 100644 --- a/libstdc++-v3/include/bits/std_complex.h +++ b/libstdc++-v3/include/bits/std_complex.h @@ -913,6 +913,11 @@ namespace std polar(const _Tp& __rho, const _Tp& __theta) { return complex<_Tp>(__rho * cos(__theta), __rho * sin(__theta)); } + template + inline complex<_Tp> + conj(const complex<_Tp>& __z) + { return complex<_Tp>(__z.real(), -__z.imag()); } + // // We use here a few more specializations. // template<> // inline complex -- 2.7.4