[multiple changes]

2000-07-03  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/std_memory.h: Revert.

2000-07-03  Brendan Kehoe  <brendan@zen.org>

	* bits/std_complex.h: Fix parens. Format.

From-SVN: r34857
This commit is contained in:
Benjamin Kosnik 2000-07-04 01:20:04 +00:00
parent 18fa319d7b
commit c14286b068
2 changed files with 642 additions and 639 deletions

View File

@ -1,3 +1,11 @@
2000-07-03 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* bits/std_memory.h: Revert.
2000-07-03 Brendan Kehoe <brendan@zen.org>
* bits/std_complex.h: Fix parens. Format.
2000-07-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
Ulrich Drepper <drepper@purist.soma.redhat.com>

View File

@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- complex number classes.
// Copyright (C) 1997-1999 Free Software Foundation, Inc.
// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -40,9 +40,9 @@
#include <bits/c++config.h>
#include <bits/std_iosfwd.h>
namespace std
{
// Forward declarations
template<typename _Tp> class complex;
template<> class complex<float>;
@ -86,7 +86,6 @@ namespace std
// Let's the compiler synthetize the copy constructor
// complex (const complex<_Tp>&);
template <typename _Up>
complex(const complex<_Up>&);
@ -102,7 +101,6 @@ namespace std
// Let's the compiler synthetize the
// copy and assignment operator
// complex<_Tp>& operator= (const complex<_Tp>&);
template <typename _Up>
complex<_Tp>& operator=(const complex<_Up>&);
template <typename _Up>
@ -158,7 +156,6 @@ namespace std
// Let's the compiler synthetize the copy and assignment
// operator. It always does a pretty good job.
// complex& operator= (const complex&);
template <typename _Tp>
complex<float>&operator=(const complex<_Tp>&);
template <typename _Tp>
@ -236,7 +233,6 @@ namespace std
// The compiler will synthetize this, efficiently.
// complex& operator= (const complex&);
template <typename _Tp>
complex<double>& operator=(const complex<_Tp>&);
template <typename _Tp>
@ -261,7 +257,6 @@ namespace std
friend double arg<>(const complex<double>&);
friend complex<double> conj<>(const complex<double>&);
friend complex<double> cos<>(const complex<double>&);
friend complex<double> cosh<>(const complex<double>&);
friend complex<double> exp<>(const complex<double>&);
@ -339,7 +334,6 @@ namespace std
friend long double arg<>(const complex<long double>&);
friend complex<long double> conj<>(const complex<long double>&);
friend complex<long double> cos<>(const complex<long double>&);
friend complex<long double> cosh<>(const complex<long double>&);
friend complex<long double> exp<>(const complex<long double>&);
@ -813,7 +807,6 @@ namespace std
return *this;
}
// Operators:
template<typename _Tp>
inline complex<_Tp>
@ -888,7 +881,7 @@ namespace std
template<typename _Tp>
inline bool
operator==(const complex<_Tp>& __x, const complex<_Tp>& __y)
{ return __x.real() == __y.real() && __x.imag == __y.imag(); }
{ return __x.real() == __y.real() && __x.imag() == __y.imag(); }
template<typename _Tp>
inline bool
@ -957,10 +950,12 @@ namespace std
template<>
inline complex<long double>
conj(const complex<long double> &__x)
{
return complex<long double> (~__x._M_value);
}
{ return complex<long double> (~__x._M_value); }
} // namespace std
#endif /* _CPP_COMPLEX */