From bc359d3a5d3e8e6a5ad489b9da8740c2cf7bf301 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Tue, 31 Oct 2000 18:11:31 +0000 Subject: [PATCH] std_complex.h: Remove duplicate definition of conj. 2000-10-31 Benjamin Kosnik * include/bits/std_complex.h: Remove duplicate definition of conj. * include/c/bits/std_cwctype.h: Consistent placement of undefs. From-SVN: r37161 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/std_complex.h | 11 +---------- libstdc++-v3/include/c/bits/std_cwctype.h | 12 ++++++------ 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ea5cc1d2992..1461b879544 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2000-10-31 Benjamin Kosnik + + * include/bits/std_complex.h: Remove duplicate definition of conj. + * include/c/bits/std_cwctype.h: Consistent placement of undefs. + 2000-10-31 Gabriel Dos Reis * src/complex.cc (arg, polar): Comment out specializations. diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h index 349d2dc6fd6..576ae86163b 100644 --- a/libstdc++-v3/include/bits/std_complex.h +++ b/libstdc++-v3/include/bits/std_complex.h @@ -177,9 +177,7 @@ namespace std friend class complex; // friend float abs<>(const complex&); - friend complex conj<>(const complex&); - friend complex cos<>(const complex&); friend complex cosh<>(const complex&); friend complex exp<>(const complex&); @@ -253,7 +251,6 @@ namespace std friend class complex; // friend double abs<>(const complex&); - friend complex conj<>(const complex&); friend complex cos<>(const complex&); friend complex cosh<>(const complex&); @@ -329,7 +326,6 @@ namespace std friend class complex; // friend long double abs<>(const complex&); - friend complex conj<>(const complex&); friend complex cos<>(const complex&); friend complex cosh<>(const complex&); @@ -683,12 +679,6 @@ namespace std complex<_Tp>::complex(const complex<_Up>& __z) : _M_real(__z.real()), _M_imag(__z.imag()) { } - // 26.2.7/6 - template - inline complex<_Tp> - conj(const complex<_Tp>& __z) - { return complex<_Tp>(__z.real(), -__z.imag()); } - // 26.2.7/4 template inline _Tp @@ -949,6 +939,7 @@ namespace std polar(const _Tp& __rho, const _Tp& __theta) { return complex<_Tp>(__rho * cos(__theta), __rho * sin(__theta)); } + // 26.2.7/6 template inline complex<_Tp> conj(const complex<_Tp>& __z) diff --git a/libstdc++-v3/include/c/bits/std_cwctype.h b/libstdc++-v3/include/c/bits/std_cwctype.h index 9a6a8914e70..e55b4c50ba0 100644 --- a/libstdc++-v3/include/c/bits/std_cwctype.h +++ b/libstdc++-v3/include/c/bits/std_cwctype.h @@ -39,12 +39,7 @@ #pragma GCC system_header #include_next -namespace std -{ - using ::wctype_t; - using ::wctrans_t; - - // Get rid of those macros defined in in lieu of real functions. +// Get rid of those macros defined in in lieu of real functions. #undef iswalnum #undef iswalpha #undef iswblank @@ -60,6 +55,11 @@ namespace std #undef iswxdigit #undef iswctype +namespace std +{ + using ::wctype_t; + using ::wctrans_t; + extern "C" int iswalnum(wint_t); extern "C" int iswalpha(wint_t); extern "C" int iswblank(wint_t); -- 2.30.2