summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-08 00:49:47 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-08 00:49:47 +0000
commit41c745880d49632b8e6329cc7a98dc9f59f00d0c (patch)
tree48702471a909badea9885510cde97116849e4360
parente8564ee979acd1a4d925226040cec18f10c4ef1b (diff)
downloadppe42-gcc-41c745880d49632b8e6329cc7a98dc9f59f00d0c.tar.gz
ppe42-gcc-41c745880d49632b8e6329cc7a98dc9f59f00d0c.zip
2011-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(), complex<>::imag()): Remove redundant const qualifiers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181141 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/include/std/complex16
2 files changed, 14 insertions, 9 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 5f4160640e3..6f0ca3839b6 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,9 @@
-2011-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
+2011-11-07 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/std/complex (complex<>::real(), complex<>::imag()):
+ Remove redundant const qualifiers.
+
+2011-11-07 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/ptr_traits.h (__rebind): Replace with...
(rebind): Implement using alias-declaration.
diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex
index d7423433803..1ab016e659a 100644
--- a/libstdc++-v3/include/std/complex
+++ b/libstdc++-v3/include/std/complex
@@ -142,10 +142,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// DR 387. std::complex over-encapsulated.
constexpr _Tp
- real() const { return _M_real; }
+ real() { return _M_real; }
constexpr _Tp
- imag() const { return _M_imag; }
+ imag() { return _M_imag; }
#else
/// Return real part of complex number.
_Tp&
@@ -1062,10 +1062,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// DR 387. std::complex over-encapsulated.
constexpr float
- real() const { return __real__ _M_value; }
+ real() { return __real__ _M_value; }
constexpr float
- imag() const { return __imag__ _M_value; }
+ imag() { return __imag__ _M_value; }
#else
float&
real() { return __real__ _M_value; }
@@ -1211,10 +1211,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// DR 387. std::complex over-encapsulated.
constexpr double
- real() const { return __real__ _M_value; }
+ real() { return __real__ _M_value; }
constexpr double
- imag() const { return __imag__ _M_value; }
+ imag() { return __imag__ _M_value; }
#else
double&
real() { return __real__ _M_value; }
@@ -1361,10 +1361,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// DR 387. std::complex over-encapsulated.
constexpr long double
- real() const { return __real__ _M_value; }
+ real() { return __real__ _M_value; }
constexpr long double
- imag() const { return __imag__ _M_value; }
+ imag() { return __imag__ _M_value; }
#else
long double&
real() { return __real__ _M_value; }
OpenPOWER on IntegriCloud