complex (complex<>::real(), [...]): Remove redundant const qualifiers.
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 8 Nov 2011 00:49:47 +0000 (00:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 8 Nov 2011 00:49:47 +0000 (00:49 +0000)
2011-11-07  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/complex (complex<>::real(), complex<>::imag()):
Remove redundant const qualifiers.

From-SVN: r181141

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/complex

index 5f4160640e39f4866c317b815f9820a28302aa6d..6f0ca3839b633767cde00d8475b84943a555b51d 100644 (file)
@@ -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.
index d74234338035da184b648a925813f8e1f9078832..1ab016e659a90bec16e939ffd09ce01b321d9d40 100644 (file)
@@ -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; }